Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I am using the following code to open a pdf file.
Private 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 strFile = 'assume strFile is opening without issue ShellExecute 0, "open", strFile, vbNullString, vbNullString, 0 how can I close the PDF file with vba script? Thank you in advance! |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
XL file opened using automation - how close? | Excel Programming | |||
XL file opened using automation - how close? | Excel Programming | |||
XL file opened using automation - how close? | Excel Programming | |||
XL file opened using automation - how close? | Excel Programming | |||
Closing a program which was opened with shellexecute | Excel Programming |