Bonjour à tous.
Voilà mon problème. Je souhaite lancer un script VBS à partir d'une macro Excel. Alors j'ai essayer avec la commande SHELL, mais cette commande n'ouvre que des .EXE.
Quelqu'un aurait'-il une idée?
En vous remerciant.
Version imprimable
Bonjour à tous.
Voilà mon problème. Je souhaite lancer un script VBS à partir d'une macro Excel. Alors j'ai essayer avec la commande SHELL, mais cette commande n'ouvre que des .EXE.
Quelqu'un aurait'-il une idée?
En vous remerciant.
Bonjour spidey89,
a priori un truc comme ça :
ou alorsCode:Shell("wscript.exe ""C:\MonVBS.vbs""")
Code:
1
2
3 Set objCMD = CreateObject("Wscript.Shell") Comnd = "C:\MonVBS.vbs" objCMD.Run Comnd