Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Running Macros from Command line


Is there any way to run a macro from the command line while opening
excel?
ie: c:\xxxxxxxx.xls "macroname"
?

if not, basically I am trying to write a program that reads all of the
files in a directory, and for all of the excel files, it opens them,
runs a specific macro on them, and then saves and closes them.

Does anyone have any ideas?


--
DrukeEr
------------------------------------------------------------------------
DrukeEr's Profile: http://www.excelforum.com/member.php...o&userid=25575
View this thread: http://www.excelforum.com/showthread...hreadid=390020

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 158
Default Running Macros from Command line

If you're writing in VB or VB.NET I would use OLE to open up the Excel
files and process them, with your code running in the application.

Would that help?

DrukeEr wrote:
Is there any way to run a macro from the command line while opening
excel?
ie: c:\xxxxxxxx.xls "macroname"
?

if not, basically I am trying to write a program that reads all of the
files in a directory, and for all of the excel files, it opens them,
runs a specific macro on them, and then saves and closes them.

Does anyone have any ideas?


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Running Macros from Command line


It would have, except I do not know how to use OL

--
DrukeE
-----------------------------------------------------------------------
DrukeEr's Profile: http://www.excelforum.com/member.php...fo&userid=2557
View this thread: http://www.excelforum.com/showthread.php?threadid=39002

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 158
Default Running Macros from Command line

If you give more details on what you're developing in and the scope I
can demonstrate code. OLE is easy - the same as developing on VB really
- if that's what you're doing.

DrukeEr wrote:
It would have, except I do not know how to use OLE


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
macros from command line Cyberwolf Excel Discussion (Misc queries) 3 July 19th 05 05:35 PM
Running a macro from a command line Kelly Excel Programming 4 November 30th 04 08:17 PM
Running a macro from the command line Czech Excel Programming 1 October 28th 04 09:51 PM
Running Multiple Modules With 1 Command Gary Excel Programming 2 January 31st 04 10:07 PM
command line excel to run macros Anthony Ryan Excel Programming 0 August 10th 03 02:06 PM


All times are GMT +1. The time now is 05:59 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"