DATA Step, Macro, Functions and more

9.3: Calling Excel macro from personal.xlsb

Reply
Contributor
Posts: 61

9.3: Calling Excel macro from personal.xlsb

In 9.2, my codes worked fine.  In 9.3, I have issues getting my excel macros to execute with my SAS codes.  Has this syntax changed now?  The macro keeps trying to execute on personal.xlsb rather than waiting for the SAS output.

This was the code:

options noxwait noxsync;

data _null_;

rc=system("Start Excel");

run;

data _null_;

x=sleep(1);

run;

SOME ODS HERE

options noxwait noxsync;

data _null_;

x=sleep(5);

run;

data _null_;

file CMDS;

put '[RUN("personal.xlsb!MACRONAME")]';

run;

Contributor
Posts: 61

Re: 9.3: Calling Excel macro from personal.xlsb

bump

Super User
Super User
Posts: 6,500

Re: 9.3: Calling Excel macro from personal.xlsb

I have no idea about your particular problem, but there are many messages about making sure that the your SAS version is consistent with your Excel version in terms of 32bit vs 64bit.  Perhaps the issue is that you went from 32 bit SAS 9.2 to 64 bit SAS 9.3?

Ask a Question
Discussion stats
  • 2 replies
  • 507 views
  • 0 likes
  • 2 in conversation