After I call a public function I want to halt or pause the first function, can this be done?
Halting one function after calling another
Collapse
X
-
-
Code:Private Sub MyFirstSub() If MyFirstFunction = True Then Exit Sub MsgBox "must have been false" End Sub Private Function MyFirstFunction() As Boolean MyFirstFunction = True End Function
So Is that what you mean?
Good LuckComment
-
See My Code Example:
Public Paused As Boolean
Public Function YourF()
'Supposse you have wrote codes here
Paused = True
Do While Paused
DoEvents ' If paused = true funtion is paused
Loop
'Code after pause
End Function
Public Function BreakPause()
Paused = False()
End Sub
'Please answer my question if you foundComment
Comment