joefrench
Active Member
- Joined
- Oct 4, 2006
- Messages
- 357
Is it possible to launch a program through desktop shortcut with VBA? I have the following code and it is giving me an 'Invalid procedure call or argument' error
Edit: Typing the string into the Run command works fine.
Edit: Typing the string into the Run command works fine.
Code:
'Launch ProE
Dim objWsh As Object, _
strDesktop As String
Set objWsh = CreateObject("WScript.Shell")
strDesktop = objWsh.SpecialFolders("Desktop") & "\Wildfire 3.0.lnk"
Set objWsh = Nothing
'Debug.Print strDesktop
Shell strDesktop, vbMaximizedFocus
Last edited: