Hi All, Thanks for the replies so far... I can see now that my reference to the other posting was a red herring and only confused the issue. It was mentioned merely to set context. So forget that reference; let me restate the problem. * I have a data set containing records and variables. In the case of SASHELP.CLASS, I have 19 records and two variables of interest, NAME and SEX. * I have a template Excel file, template.xlsm. * I want to create 19 copies of this template Excel file, named according to the data in my SAS data set. If this was all I wanted to do, the problem would be trivial. For example, I could easily generate a simple batch file with "copy template.xlsm <name>_<sex>.xlsm" statements, and then just execute it. * However, I also want to set a particular cell in the copied Excel file to a particular value. In the case of SASHELP.CLASS, it is the value of NAME. This is my sticking point. I should also point out, while I have full access to DMS, EG, etc, the end user only has access to EG. So, DDE may not be a viable option. I could generate the output files for her, but I would prefer she be self-sufficient. So, in summary: * Given a template Excel file (heck for a POC it can just be an empty file), can I set a particular cell to the value of a SAS variable? Using EG or VBA? * If not, then same question, without the restriction that it be EG. * If VBA is my only option then just let me know. I can export the data set to either a file or Excel worksheet, then write VBA to spin through that data and create the output workbooks (with a lot of referencing to VBA books/websites!) I posted here because AFAIK DDE falls under Base programming. Apologies for the confusing initial message. Thanks, Scott
... View more