Private Declare Function ShowCursor Lib "user32" (ByVal bShow As Long) As LongPrivate Sub Command1_Click()
    ShowCursor 0
    'Wait 5 seconds
    t = Timer
    Do: DoEvents: Loop Until Timer > t + 5
    'Show the cursor
    ShowCursor 1
End Sub