12-23-2013 04:15 PM
I would look into DDE, if you can (google "SAS Excel DDE"). That allows SAS to tell Excel to do things, including run macros.
12-23-2013 04:35 PM
DDE has not been supported since 2003 maybe even earlier than that and is dying with 64 bit platforms/remote submission environments like EG or grid. Nonetheless, for local processes it can still achieve the desired results easier and faster than with some other means.
However, if you are looking for an expandable solution that will work for a long time, I would stay away from DDE.
If you have VBA knowledge, odds are it would be easier to do the opposite. I suggest you give a read to
I'd love to provide more insights but I've really only played with DDE myself and have not had anything of large enough scale to get into VB-SAS interaction
*edit Reeza -> Like!
12-23-2013 04:45 PM
That solution assumes you have SAS Add in for Microsoft Office, which to me, in my experience is more unstable.
I'd go DDE. Currently using it with 64 bit SAS with 32 bit Excel 2010 and not having issues. But generally, I embed a macro into the Sheet and then call that macro instead of using DDE to actually do things.
There's also the ODS TableEditor option