![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Board Regular
Join Date: Feb 2002
Location: England
Posts: 212
|
Is it possible to run a batch file with VB code, if so can someone help me with the code.
thanks Matt |
|
|
|
|
|
#2 |
|
Board Regular
Join Date: Mar 2002
Location: Cincinnati, Ohio, USA
Posts: 6,824
|
Sure
Use the shell function ex. Sub RunBatch() Dim AppId AppId = Shell("C:MyBatch.bat", 1) 'Run MyBatch End Sub Tom |
|
|
|
|
|
#3 |
|
Board Regular
Join Date: Feb 2002
Location: England
Posts: 212
|
You're a Star Tom!
Cheers Matt |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|