I want to add a wait block for 500 milliseconds in macOS VBA editor for Excel. I know
Application.Wait (Now + TimeValue("0:00:01"))
Works, but this can't go under 1 second. I have tried the sleep command too:
Public Declare PtrSafe Sub Sleep Lib "kernel32" (ByVal dwMilliseconds As LongPtr)
...
Sleep 500
But this gives me an error saying
File Not Found "kernel32"
Any way to achieve this?