Hello, I'm running the following program and running into an issue within excel. When SAS processing the line put '[formula.fill("=SUM(U2:U299)/1000")]'; excel gives me the following message. Not sure where I'm going wrong here.. Thanks!
Filename cmds dde 'excel|system';
Data _null_;
File cmds;
Put '[workbook.activate("MB")]';
Put '[select("R300C20")]';
put '[formula.fill("Sum of Acquisition Cost and Carrying Value")]';
put '[select("R301C20")]';
put '[formula.fill("From Sch A, col A, line M.2 & Sch A, col D, line M.2")]';
put '[select("R302C20")]';
put '[formula.fill("Check, must be zero")]';
put '[select("R300C21")]';
put '[formula.fill("=SUM(U2:U299)/1000")]';
put '[select("R300C66")]';
put '[formula.fill("=SUM(BN2:BN299)/1000")]';
put '[select("R301C21")]';
put '[formula.fill("='Schedule A'!G16")]';
put '[select("R302C21")]';
put '[formula.fill("=U300-U301")]';
put '[select("R301C66")]';
put '[formula.fill("='Schedule A'!J16")]';
put '[select("R302C66")]';
put '[formula.fill("=BN300-BN301")]';
run;
It's your turn to help shape SAS Innovate 2027. Share your expertise and inspire the SAS community.
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.