Lancer une macro Excel depuis SAS (DDE)
Fermé
florian_sessi
Messages postés
1
Date d'inscription
lundi 4 février 2008
Statut
Membre
Dernière intervention
4 février 2008
-
4 févr. 2008 à 11:55
oolong - 28 mai 2008 à 13:51
oolong - 28 mai 2008 à 13:51
2 réponses
filenema cmd DDE 'EXCEL|SYSTEM";
options noxwait noxsync;
data _null_;
rc=system('start excel');
run;
data _null_;
file cmds;
put "[open(" chemin et nom du fichier excel")];
run;
data _null_;
file cmds;
put '[RUN("nom de la macro")]';
run;
data _null_;
file cmds ;
put "[Quit()]";
run;
options noxwait noxsync;
data _null_;
rc=system('start excel');
run;
data _null_;
file cmds;
put "[open(" chemin et nom du fichier excel")];
run;
data _null_;
file cmds;
put '[RUN("nom de la macro")]';
run;
data _null_;
file cmds ;
put "[Quit()]";
run;