You are reading a single comment by @aggi and its replies.
Click here to read the full conversation.
-
shell
https://learn.microsoft.com/en-us/office/vba/language/reference/user-interface-help/shell-function
' Specifying 1 as the second argument opens the application in ' normal size and gives it the focus. Dim RetVal RetVal = Shell("C:\WINDOWS\NOTEPAD.EXE", 1) ' Open Notepad.
I'm sure I've done this many times before but googling is just bringing up excessively complicated scenarios. I want to run a batch file from Excel VBA, no need to pass any arguments to it or anything. What should I be doing? Cheers