Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
Tom Tom is offline
external usenet poster
 
Posts: 49
Default Can excel run a batch file?

How do I create a macro to run a batch file (abc.bat), after attaching it to
a button? I realize Excel has to carry out this task out itself. If not, is
there a way around it by first getting into the command prompt?

TIA
Tom


  #2   Report Post  
Posted to microsoft.public.excel.misc
jaf jaf is offline
external usenet poster
 
Posts: 300
Default Can excel run a batch file?

Hi Tom,
Shell "c:\your path\abc.bat"

John


"Tom" wrote in message ...
How do I create a macro to run a batch file (abc.bat), after attaching it to
a button? I realize Excel has to carry out this task out itself. If not, is
there a way around it by first getting into the command prompt?

TIA
Tom


  #3   Report Post  
Posted to microsoft.public.excel.misc
Tom Tom is offline
external usenet poster
 
Posts: 49
Default Can excel run a batch file?

Hi John,

It works perfectly. Thanks.

Tom

"jaf" wrote in message
...
Hi Tom,
Shell "c:\your path\abc.bat"

John


"Tom" wrote in message
...
How do I create a macro to run a batch file (abc.bat), after attaching it
to a button? I realize Excel has to carry out this task out itself. If
not, is there a way around it by first getting into the command prompt?

TIA
Tom



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
Excel from Batch File Problem PcolaITGuy Excel Discussion (Misc queries) 2 January 10th 08 06:43 PM
Excel to Run a Batch File?!? carla New Users to Excel 3 January 20th 07 02:32 AM
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


All times are GMT +1. The time now is 09:48 AM.

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"