View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
Berend Botje[_25_] Berend Botje[_25_] is offline
external usenet poster
 
Posts: 1
Default Disabling code using a button?

That is not too hard....

Public StartStopCode As Boolean

Private Sub Button_Click()

If StartStopCode = True Then
StartStopCode = False
Else: StartStopCode = True
End If

End Sub

Private Sub MyCode()
If StartStopCode = False Then

' Your code here

End If
End Su

--
Message posted from http://www.ExcelForum.com