Hello
I have a problem with running vba macros with the parameter from sas.
Someone has a solution?!
my macro:
Sub Refre(Nr As Integer, TF As Integer, NrCoopy As Integer) FileCopy "C:\FX\Terminal\Ex_" & Nr & "_" & TF & "_1.xlsx", "C:\FX\Terminal\Ex_10" & NrCoopy & "_" & TimeFrame & "_1.xlsx" ActiveWorkbook.UpdateLink Name:=ThisWorkbook.Path & "\Ex_10" & NrCoopy & "_" & TF & "_1.xlsx", Type:= _ xlExcelLinks End Sub
Sub Run() Call Refre(0, 5, 1) End Sub
this work
FILENAME CMDS DDE 'EXCEL|SYSTEM';
DATA _NULL_;
FILE CMDS;
PUT %unquote(%str(%'[RUN("Run")]%'));
RUN;
QUIT;
this does not work
FILENAME CMDS DDE 'EXCEL|SYSTEM';
DATA _NULL_;
FILE CMDS;
PUT %unquote(%str(%'[RUN("Refre(0, 5, 1)")]%'));
RUN;
QUIT
there is some way that the secend way would work:
thank you for help
best regards
... View more