Hi ,
I am trying to export few datasets to different sheets of a excel file with the below code . It works fine but for one sheet it throws below error. If i delete that sheet and run again it works fine. But i cannot delete that sheet because there are many other graphs that reference from the sheet. Any help is greatly appreciated. I am using SAS 9.4
proc export data=stattrans
outfile= "&OUTDIR.\&loan_type._&product._report.xlsx" dbms=excel2007 replace;
SHEET="DATA_&testname.stat";
run;
error : Can not replace sheet because it has existing formulas that reference other page
Hi Reeza,
Sorry for the late response. Changing DBMS worked. Your help is much appreciated. 🙂
Thanks
LzG
I prefer to have the data sheets separate from the report sheets to avoid this kind of issue and to keep things clean and simple.
If that's not an option, a named range might be another way as mentioned.
April 27 – 30 | Gaylord Texan | Grapevine, Texas
Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!
Still thinking about your presentation idea? The submission deadline has been extended to Friday, Nov. 14, at 11:59 p.m. ET.
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.