title: Change in variable triggers an event
body: <p>Is triggering an event via a change in variable possible? For example.</p>
  
  <p>This would trigger the event</p>
  
  <pre><code>Dim t As Integer
  Dim Fire As Boolean
  
  Private Sub Test
  t = 0
  Fire = True
  IIf Fire, t=1, t=2
  End sub
  </code></pre>
  
  <p>In the event handler</p>
  
  <pre><code>Select Case t
      Case 0
         'Do something
      Case 1
         'Do something            
      Case 2
         'Do something
      Case 3
         'Do something
      ...   
  </code></pre>
  
  <p>Google brings up Event handlers, and using class modules but I am unable to wrap my head around it.</p>