vba keep command window open

The solution for “vba keep command window open” can be found here. The following code will assist you in solving the problem.

Sub cmdWinOpen()
Dim res
Dim shell As Object
Set shell = VBA.CreateObject(“WScript.Shell”)
res = shell.Run(“cmd /k ” & “your command”)
End Sub

Thank you for using DeclareCode; We hope you were able to resolve the issue.

More questions on [categories-list]

Similar Posts