
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
Sub Aprifile()
Dim X As Long
Dim strPath, strParam As String
On Error Resume Next
strPath = "percorso file"
strParam = " /A " & Chr(34) & "page=3" & Chr(34) & strPath
X = ShellExecute(0, "Open", "AcroRd32.exe", strParam, "", 1)
End Sub |
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
Sub test()
ShellExecute 0, "open", "acrord32.exe", "/a ""page=5"" ""c:users
omeutentedocumentsmiofile.pdf"" ", "", 1
End Sub |
set v = application.FileDialog(msoFileDialogFilePicker )
