Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

hi, can someone help me with this runtime error? 1

Status
Not open for further replies.

si_file

Programmer
Sep 17, 2022
1
GB
I'm a beginner programmer and I'm trying to make a paste "bot" (I know it's not a bot but I digress). The error code that comes up is error 800A01A8. I have researched about it and all the causes for it (that I have found) I have not done. I would greatly appreciate it if anyone can help. Thanks!
Code:
WScript.Sleep 5000
WshShell.Sendkeys "^v"
WScript.Sleep 2000
WshShell.SendKeys "{ENTER}"
WScript.Sleep 2000
(repeats the code, not including the first sleep line lots of times)
 
Just insert

Code:
Set WshShell = WScript.CreateObject("WScript.Shell")

at the beginning of your code
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top