In VBA I use Call Sleep(TIME) where TIME is a value of some 10 msec. Worked fine wit Office 2003, now I have Office 2019, and the error message "Sub or Function not defined". Where do I find this function?
I defined
Public Declare Sub Sleep Lib "kernel32" (ByVal dwMilliseconds As Long)
but it was rejected as error