I usually have a sas macro code which automatically run macros “Save As” and “Close file” in the excel spreadsheet on running the sas code and after populating the data into the excel file.
The problem I have is that the excel file I have right now has certain macros which I cant edit becuase they are password protected and neither can I add any “Save As” and “Close file” macro in it. Is there a way to directly “Save As” and “Close file” with the help of sas and without using the macro.
Sure can. You can use DDE to achieve that. Below are 3 macros that should do exactly what you ask. Add them to your SAS autocall macro library: