andrewb90
Well-known Member
- Joined
- Dec 16, 2009
- Messages
- 1,077
Hello all,
I've tried a few varieties of this and each time VBA seems to be running much longer than necessary for a "1 second" pause. Can anybody help me out with what's wrong?
I've tried a few varieties of this and each time VBA seems to be running much longer than necessary for a "1 second" pause. Can anybody help me out with what's wrong?
Code:
Private Sub KeepOpenWB_Click()
Sheets("HOME").Range("AM1").Value = 1
Me.Hide
MultiFileOK.Show
If Application.Wait(Now + TimeValue("0:00:01")) Then
MsgBox "times up"
'Application.WaitNow TimeValue("00:00:01")
'Application.Wait (Now + #12:00:01 AM#)
MultiFileOK.Hide
End If
End Sub