View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.misc
Gary''s Student
 
Posts: n/a
Default Call a batch file from an Excel Macro

Sub Macro1()
x = Shell("cmd.exe /c C:\Userguide.bat", 1)
End Sub

--
Gary's Student


"Alex Horan" wrote:

I would like a macro I have created in Excel to run a batch file. Is this
possible? What would the command be in the macro to do this?

Thanks for any help.