fourclicks
05-18-2012, 10:02 AM
Hello, hoping you guys can help. I think it may be real simple.
This code loads a PDF into the form, and it takes up to a second to load.
I want the "OK" button to be in focus, but usually the PDF finishes loading after the message box appears and takes the focus.
The only work around I could think of was "Me.Wait (1)" which is just not a good way about it.
wb1.Navigate filname
Me.Wait (1)
MsgBox "Please update the Date Received.", vbOKOnly + vbSystemModal + vbDefaultButton1
txtDRMM.SetFocus
Any ideas?
This code loads a PDF into the form, and it takes up to a second to load.
I want the "OK" button to be in focus, but usually the PDF finishes loading after the message box appears and takes the focus.
The only work around I could think of was "Me.Wait (1)" which is just not a good way about it.
wb1.Navigate filname
Me.Wait (1)
MsgBox "Please update the Date Received.", vbOKOnly + vbSystemModal + vbDefaultButton1
txtDRMM.SetFocus
Any ideas?