External program call from Excel VBA

L

lars_bentzen

Hi there,

I am working with large set of data there are extracted and created by
SAS. But the final calculations are made in Excel.

Is it possible to call and execute the SAS-file by VBA code? If so, a
few hints would be appreciated very much.

Thank you in Advance!

Regards,
Lars
 
M

Michael Bednarek

I am working with large set of data there are extracted and created by
SAS. But the final calculations are made in Excel.

Is it possible to call and execute the SAS-file by VBA code? If so, a
few hints would be appreciated very much.

The Shell() function can be used to run external programs; however, it
will execute asynchronously. For your purpose, search the web for
ShellWait() or ShellAndWait(). Here's the one I used i.a. to unzip files
from with Excel's VBA: <http://www.mvps.org/access/api/api0004.htm>.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top