Object Required: WScript
-
Hi Guys, not sure if im in the right forum but this is the error i am getting in my script. i have googled and tried many things but to no avail.... the error: "Object Required: WScript" the code:
dim wshShell ,Wscript
set WshShell = CreateObject("WScript.Shell")while StockCode <>""
Wscript.Sleep 1000
wendthe error fails on Wscript.sleep command... any idea on how to solve this.... thanks in advance Anoop
-
Hi Guys, not sure if im in the right forum but this is the error i am getting in my script. i have googled and tried many things but to no avail.... the error: "Object Required: WScript" the code:
dim wshShell ,Wscript
set WshShell = CreateObject("WScript.Shell")while StockCode <>""
Wscript.Sleep 1000
wendthe error fails on Wscript.sleep command... any idea on how to solve this.... thanks in advance Anoop
You create WshShell in line 2 but never create Wscript!
Never underestimate the power of human stupidity RAH
-
You create WshShell in line 2 but never create Wscript!
Never underestimate the power of human stupidity RAH
how do i do that? i.e. create the wscript? thanks
-
how do i do that? i.e. create the wscript? thanks
-
how do i do that? i.e. create the wscript? thanks
It's obvious you have no clue what you're doing. I suggest starting with the basics, here[^].
A guide to posting questions on CodeProject[^]
Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
2006, 2007, 2008