12-01-2007, 01:39 AM
I did not spend much time using Vbscript with Quick Macros previously, but I now want to use it to drive Excel and Word. Vbscript statements seemed to work in version 2.19 on my computer, but no longer work with version 2.2.0.11 on same computer.
For example, the following does not work now:
VbsExec "msgbox ''First''[]msgbox ''Second''"
Error (RT) in Macro68: :
Line 0:
Vbscript works with WSH on the same computer. The following code works fine:
option explicit
dim messageDemo
set messageDemo=wscript.createobject("wscript.network")
msgbox "Some Text"
wscript.quit()
What might be the problem with Vbs statements?
For example, the following does not work now:
VbsExec "msgbox ''First''[]msgbox ''Second''"
Error (RT) in Macro68: :
Line 0:
Vbscript works with WSH on the same computer. The following code works fine:
option explicit
dim messageDemo
set messageDemo=wscript.createobject("wscript.network")
msgbox "Some Text"
wscript.quit()
What might be the problem with Vbs statements?