ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Call a batch file from an Excel Macro (https://www.excelbanter.com/excel-discussion-misc-queries/74834-re-call-batch-file-excel-macro.html)

Gary''s Student

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.



All times are GMT +1. The time now is 09:20 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com