Lancement *.exe

T

Txotx'of

Guest
Bonjour à tous,

Je souhaiterai à partir d'une macro, lancer un exe ( par exemple notepad.exe ) mais j'y arrive pas.

Si quelqu'un à une idée,

Merci d'avance.

Txotx'of
 
@

@+Thierry

Guest
Salut Txotx'of

Utilise une command Shell...

Voici un copié collé de l'aide :

This example uses the Shell function to run an application specified by the user.

' Specifying 1 as the second argument opens the application in
' normal size and gives it the focus.
Dim RetVal
RetVal = Shell("C:\WINDOWS\CALC.EXE", 1) ' Run Calculator.

...
Dans ton exemple il faut just changer "C:\WINDOWS\NOTEPAD.EXE" ...

Bon App
@+Thierry
 

Statistiques des forums

Discussions
312 147
Messages
2 085 765
Membres
102 968
dernier inscrit
Tmarti