Thursday, May 17, 2012

Use VBA to open a file

'Use Windows Explorer to launch the file.
VBA.Shell "Explorer.exe " & Chr(34) & strFilePath & Chr(34), vbNormalFocus 


'Use command to launch the file
VBA.Shell "cmd /c """ & GetItemFolder & strFileName & """"

No comments:

Post a Comment