Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Launching a batch file

Is it possible to launch a batch file from within an Excel macro. If so what
is the command I need in VBA assuming the batch file is in
c:\belfry\convert.bat
Thank you


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default Launching a batch file

Take a look at VBA's help for Shell.

Ben wrote:

Is it possible to launch a batch file from within an Excel macro. If so what
is the command I need in VBA assuming the batch file is in
c:\belfry\convert.bat
Thank you


--

Dave Peterson
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7,247
Default Launching a batch file

Use the Shell command. E.g.,

Shell "c:\belfry\convert.bat", vbNormalFocus


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com



"Ben" wrote in message
...
Is it possible to launch a batch file from within an Excel
macro. If so what is the command I need in VBA assuming the
batch file is in c:\belfry\convert.bat
Thank you



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
Launching Excel from Spreadsheet file CES-MCS Excel Discussion (Misc queries) 3 March 6th 07 04:58 PM
Would Like to Automate Batch File Creation and Text FIle Import socrtwo Excel Discussion (Misc queries) 2 August 18th 06 03:54 PM
launching excel, a file, and a macro automatically Bernie Yaeger Excel Programming 0 September 16th 04 05:45 PM
Create a batch file from a number of Excel File Vinay[_2_] Excel Programming 0 September 8th 04 01:11 AM
Launching file in excel not internet explorer virtualstorm Excel Programming 0 August 9th 04 11:55 AM


All times are GMT +1. The time now is 05:01 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"