T
Tony_VBACoder
I am trying to use various API calls to launch a PDF file in Acrobat, and
wait until the file has fully loaded before continuing on in my code, so that
I can grab the Window Handle ID of the newly opened PDF window.
I am trying to attach this code to a button's click event that will do the
following:
#1 Call the API ShellExcute to load a PDF document:
Public Declare Function ShellExecute Lib "shell32.dll" Alias
"ShellExecuteA" (ByVal hWnd As Long, ByVal lpOperation As String, ByVal
lpFile As String, ByVal lpParameters As String, ByVal lpDirectory As String,
ByVal nShowCmd As Long) As Long
#2 - Wait until the file has had a chance to fully load before continuing
onto the next step
#3 - Grab the FileHandle to the window where this PDF opened.
Does anyone has any sample VBA code that would accomplish this?
wait until the file has fully loaded before continuing on in my code, so that
I can grab the Window Handle ID of the newly opened PDF window.
I am trying to attach this code to a button's click event that will do the
following:
#1 Call the API ShellExcute to load a PDF document:
Public Declare Function ShellExecute Lib "shell32.dll" Alias
"ShellExecuteA" (ByVal hWnd As Long, ByVal lpOperation As String, ByVal
lpFile As String, ByVal lpParameters As String, ByVal lpDirectory As String,
ByVal nShowCmd As Long) As Long
#2 - Wait until the file has had a chance to fully load before continuing
onto the next step
#3 - Grab the FileHandle to the window where this PDF opened.
Does anyone has any sample VBA code that would accomplish this?