Douglas J. Steele said:
Depends on the executable.
Many allow you to pass the name of the file as an argument:
Dim strExecutable As String
Dim strFile As String
strExecutable = "C:\Program Files\SomeApp\app.exe"
strFile = "C:\Documents\MyFile.xyz"
Shell """" & strExecutable & """ """ & strFile & """"
That's four double quotes in a row at the beginning and end, and two sets of
three double quotes in the middle. The intent is to create
"C:\Program Files\SomeApp\app.exe" "C:\Documents\MyFile.xyz"
to handle embedded spaces in the path.