how is the "stop" button telling the loop to break? Like this? :
VB Code:
Dim stopLoop As Boolean Do Until x=5 'whatever you use DoEvents If stopLoop = True Then Exit Do End If 'do whatever Loop Private Sub cmdStop_Click() stopLoop = True End Sub
like that?
![]()




Reply With Quote