Hi all,
I'm a bit puzzled and hoping someone can shed some light on what's causing this issue. I was recently introduced by a colleague at work to the idea of writing data to an Excel sheet using a named range (already existing on the Excel book, but deleted using proc datasets then written again in a data step). I have done this successfully in EG as follows: -
%let xlpath=########/Arrears Level Charts.xlsx;
libname xl Excel "&xlpath";
proc datasets lib=xl nolist;
delete arrs_level.;
quit;
data xl.arrs_level.;
set arrs_level._trans_2;
run;
libname xl clear;
I have tried to use the same concept in SAS Studio but rather than the data being written to the named range on an existing tab, it is creating a new tab in the workbook with the named range name as the tab name, and creating the named range in that sheet. The only difference in the coding is that I have had to use the xlsx engine rather than the Excel one in my libname statement. Is anyone able to suggest why this might be happening, and what I would need to do to get the data written to the existing named range?
Thanks in advance for any suggestions.
Rob