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 / Excel / New Users / April 2006

Tip: Looking for answers? Try searching our database.

invoking a macro

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Al_C - 30 Apr 2006 19:23 GMT
Hi,
Is it possible to invoke a macro when starting excell fom the command line?
My ultimate purpose is to permit a user to push a button in my app and
invoke excel which then imports a CSV text file which my app has generated.
Any alternative approaches?
Al
Gord Dibben - 30 Apr 2006 19:46 GMT
Al

Macros cannot be invoked from the command line.

You can, however, add Workbook_Open code in the ThisWorkbook module which will
run a macro when the workbook is opened via the command line.

Or Auto_Open code in a general module.

Assuming that users enable macros.

Gord Dibben  MS Excel MVP

>Hi,
>Is it possible to invoke a macro when starting excell fom the command line?
>My ultimate purpose is to permit a user to push a button in my app and
>invoke excel which then imports a CSV text file which my app has generated.
>Any alternative approaches?
>Al
 
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.