mtheriault2000
Well-known Member
- Joined
- Oct 23, 2008
- Messages
- 826
Long time that I played with the Shell command. I keep getting Error 5.
I think that it is related to some space included in the path, but can't find how to resolved that yet.
The goal, start and external application when my Excel file is opened.
Martin
I think that it is related to some space included in the path, but can't find how to resolved that yet.
The goal, start and external application when my Excel file is opened.
Code:
Private Sub Workbook_Open() ' Setting a global variable
Dim retcode As Long
Dim StringBack As String
Dim Astring As String
Astring ="G:\Users\Utilisateur\Documents\Martin\Documents\Document Bourse\MultiChart\WorkSheet\1 Hour\4_ScalesChart\4Scales_Desktop.mcd"
retcode = Shell(Astring,1)
End Sub
Martin