Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / January 2007

Tip: Looking for answers? Try searching our database.

External program call from Excel VBA

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
lars_bentzen@hotmail.com - 26 Jan 2007 08:36 GMT
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
Michael Bednarek - 26 Jan 2007 13:34 GMT
On 26 Jan 2007 00:36:19 -0800, lars_bentzen@... wrote in
microsoft.public.word.programming:

>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>.

Signature

Michael Bednarek   http://mbednarek.com/   "POST NO BILLS"

 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.