I have a simple requirement
I want to write 'Hello world' to windows cmd.exe
from VBA (excel)
I referred 'Shell' and few other posts but could not do it
I have a simple requirement
I want to write 'Hello world' to windows cmd.exe
from VBA (excel)
I referred 'Shell' and few other posts but could not do it
The following worked:
strToPrint = "Hello World!"
Shell "cmd.exe /K echo " & strToPrint, vbNormalFocus