In the pop-up form there is a button that when clicked opens the acrobat file and allows the user to resize the acrobat fileHow are you opening the Adobe file? If you're using a command line, you might be able to use the ShellAndWait method instead. If you can do that, then you could run your resize code AFTER the ShellAndWait method finishes.
Option Explicit
Declare Function GetModuleUsage% Lib "Kernel" (ByVal hModule%)
Function WaitShell( AppName as String)
Dim hMod as Integer
hMod = Shell(AppName, 1)
If (Abs(hMod) > 32) then
While (GetModuleUsage(hMod))
DoEvents
Wend
Else
MsgBox "Unable to start " & AppName
End If
End Function
You'd add that to a Standard Module (and make sure the Declare section is in the General Declarations section of that module), and then open your Adobe process using this syntax:dim oshell
dim oWmg
dim strWndprs
dim objQResult
WScript.Sleep 100
Set oShell = CreateObject("WScript.Shell")
Set oWmg = GetObject("winmgmts:")
strWndprs = "select * from Win32_Process where name='cmd.exe'"
Set objQResult = oWmg.Execquery(strWndprs)
For Each objProcess In objQResult
intReturn = objProcess.Terminate(1)
Next
...or a small sample db would be better...