Accepted Answer from JohnBPrice Date: 01/06/2005 05:35AM PST
shell "C:\sofware\myprog.exe 1234"
Assisted Answer from Dhaest Date: 01/06/2005 05:36AM PST
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
ShellExecute Me.hwnd, "Open", "c:\abc.pdf", 0&, 0&, SW_SHOWNORMAL
Assisted Answer from Dhaest Date: 01/06/2005 05:37AM PST
MyAppId = Shell( [path of the program], vbNormalFocus)
AppActivate MyAppId