I figured out all about DoEvents yesterday.
I'll try to explain:
It never gets out of the Do..Loop in Command2.Code:Private Sub DoSomething() Text1 = "working" Do Until Text1 = "Quit" DoEvents Loop Text1 = "Ready" End Sub Private Sub Command1_Click() DoSomething End Sub Private Sub Command2_Click() Text1 = "Quit" Do Until Text1 = "Ready" DoEvents Loop MsgBox "Hello" End Sub
Any suggestions to fix this or even a different thought process would be greatly appreciated.




Reply With Quote