I am currently working on a code where in there is an existing sample.vbs which is being executed in a html application (.hta). It works perfectly in there.
Now I need to transfer the GUI into VBA and I am calling the exact sample.vbs exactly the same how it being executed in the .hta (html application)
The problem is that I am having an error when executing the link: It says Runtime error 450 "wrong number of argument or invalid property assignment"
Dim oShell, returnCode
Set oShell = CreateObject("WScript.Shell")
Set returnCode = oShell.exec("sample.vbs -U " & param1 & " -P " & param2 & " -E " & param3 & ".", , True)
What seems to be the problem here?
Thanks in advance!