Hi VB Forums,
I need to stop my code from running for 1 second before continuing on to the next line. WScript.quit(1000) produces the error below:
![Name: Error.PNG
Views: 94
Size: 30.1 KB]()
Below is a simplified version of what I want to achieve. The code produces the above error and only goes back one screen. I want to send the user back 2 screens.
MsgBox "Hi"
Call Back
WScript.Sleep(1000)
Call Back
' Send user back one screen in UNIX based software
crt.Screen.Synchronous = True
Sub Back
crt.Screen.Send chr(27) & "OR"
End Sub
Any help with this will be greatly appreciated.
Also, can someone tell me how to write code in a code window on here? I don't seem to be able to figure it out.
I need to stop my code from running for 1 second before continuing on to the next line. WScript.quit(1000) produces the error below:
Below is a simplified version of what I want to achieve. The code produces the above error and only goes back one screen. I want to send the user back 2 screens.
Quote:
MsgBox "Hi"
Call Back
WScript.Sleep(1000)
Call Back
' Send user back one screen in UNIX based software
crt.Screen.Synchronous = True
Sub Back
crt.Screen.Send chr(27) & "OR"
End Sub
Also, can someone tell me how to write code in a code window on here? I don't seem to be able to figure it out.