Excel to Run a Batch File?!?

  • Thread starter Thread starter carla
  • Start date Start date
C

carla

Hi

I am running Office 2003. I have designed an excel spreadsheet using
various macros. I now need a macro designed that can run a batch file.
Is this possible?

Hope you guys can help!

Thanks Alot

Carla
 
Carla

Sub Run_Batch()
Dim taskID As Variant
On Error Resume Next
Shell ("C:\yourbatch.bat"), vbNormalFocus
If Err <> 0 Then _
MsgBox "yourbatch.bat is Missing"
End Sub


Gord Dibben MS Excel MVP
 
Back
Top