Exit For in WhileAuthor: Dave Date: 01.18.16 - 2:37am Interesting little tidbit, I never knew this worked.. Dim d As Boolean Private Sub Command1_Click() d = True End Sub Private Sub Form_Load() Me.Visible = True Me.Refresh DoEvents d = False For i = 0 To 100 While 1 DoEvents Me.Refresh If d Then Exit For Wend Next MsgBox "done!" End Sub Comments: (0) |
About Me More Blogs Main Site
|
||||||||||||||||||||||||||||||||||||||