Is there a way to open the Windows Command Prompt through VBA code?
Is there a way to open the Windows Command Prompt through VBA code?
Consider:
![]()
Sub ShellGame() x = Shell("cmd.exe", 1) End Sub
Gary's Student
Nice job Jakobshavn,
You can also try the following which are similar:
Lewis![]()
Sub RunCmdDotExe() '/K keeps cmd.exe open Call Shell("cmd.exe /K ", vbNormalFocus) 'or Call Shell("cmd.exe /K ", vbMaximizedFocus) End Sub
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks