Every kid starts out as a natural-born scientist, and then we beat it out of them. A few trickle through the system with their wonder and enthusiasm for science intact.
I copied (using the COPY button) the procedure and pasted into my GlobalMod and I get an error that states: Compile Error: Only Comments may appear after the End Sub, End Function, or End Property And the first line about Declaring the SUB SLEEP is all selected when the error appears. >> Public Declare PtrSafe Sub Sleep Lib "kernel32" (ByVal Milliseconds As LongPtr)
Brad WileOP
@Reply 2 years ago
Adam Schwanz
@Reply 2 years ago
Your Option Explicit should be at the top of the page, it's probably already there, as should your declare.
Adam Schwanz
@Reply 2 years ago
Option Compare Database
Option Explicit
'Public Declare PtrSafe
'Rest of your normal code
Brad WileOP
@Reply 2 years ago
I found a stray piece of code. It is working.
Sorry, only students may add comments.
Click here for more
information on how you can set up an account.
If you are a Visitor, go ahead and post your reply as a
new comment, and we'll move it here for you
once it's approved. Be sure to use the same name and email address.
This thread is now CLOSED. If you wish to comment, start a NEW discussion in
Sleep Seconds.