Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
LJi LJi is offline
external usenet poster
 
Posts: 7
Default Run Excel Macro through Batch file

Hi List,

Is that possible to run an Excel macro through a batch file? If yes,
can I pass value to run a macro? For example, if i need to let the
macro work on centern files, can i pass the file name when calling the
macro from the batch file? Like

C:\testmacro.xls FileOne.xls

Thanks for any help.

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default Run Excel Macro through Batch file

You can schedule an Excel macro to run at a pre-defined time if that is any
good. You cannot run an Excel macro outside of Excel.

--

HTH

RP
(remove nothere from the email address if mailing direct)


"LJi" wrote in message
ups.com...
Hi List,

Is that possible to run an Excel macro through a batch file? If yes,
can I pass value to run a macro? For example, if i need to let the
macro work on centern files, can i pass the file name when calling the
macro from the batch file? Like

C:\testmacro.xls FileOne.xls

Thanks for any help.



  #3   Report Post  
Posted to microsoft.public.excel.programming
LJi LJi is offline
external usenet poster
 
Posts: 7
Default Run Excel Macro through Batch file

User already has a batch file which contains different command lines to
run different programs. they want to add this macro into it.

I may need to rewrite the macro using VB.

Thanks for your reply.

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default Run Excel Macro through Batch file

If it is a .bat file, would it be okay just to shell it?

--

HTH

RP
(remove nothere from the email address if mailing direct)


"LJi" wrote in message
oups.com...
User already has a batch file which contains different command lines to
run different programs. they want to add this macro into it.

I may need to rewrite the macro using VB.

Thanks for your reply.



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
Batch file initiation from Excel macro? Yarroll Excel Discussion (Misc queries) 1 October 13th 06 02:50 PM
Call a batch file from an Excel Macro Alex Horan Excel Discussion (Misc queries) 0 March 2nd 06 03:29 PM
Call a batch file from an Excel Macro Gary''s Student Excel Discussion (Misc queries) 0 March 2nd 06 03:26 PM
Batch file to start multiple excel files with auto_open() macro. Delay code needed [email protected] Excel Programming 9 May 29th 05 07:02 AM
Run Excel Macro in a Batch File DP[_3_] Excel Programming 2 September 8th 04 07:38 PM


All times are GMT +1. The time now is 11:15 PM.

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

About Us

"It's about Microsoft Excel"