title: Use options to toggle two sets of code
body: <p>I have two option buttons on a user form. If you select one, it grays out and disables certain input boxes ind If you select the other, it restricts other input boxes and works great. So I have the appropriate code that executes what I want. HOWEVER, if the user makes a mistake and clicks one option and then tries to change their selection, the code has already executed and disabled those inputs. How do I get the code to toggle back and forth? Here is my code, thanks a lot for the help! </p>
  
  <pre><code>Sub Yes_Click()
  If Yes.Value = True Then
      With Me.IncrementalImpactPricingInput1
      .Enabled = False
      .BackColor = RGB(128, 128, 128)
      End With
  
      With Me.IncrementalImpactFundingInput1
      .Enabled = False
      .BackColor = RGB(128, 128, 128)
  
      Me.BilledAmountInput1.Enabled = True
  
      End With
  Else: Call No_Click
  
  End If
  End Sub
  
  Sub No_Click()
  If No.Value = True Then
      With Me.BilledAmountInput1
      .Enabled = False
      .BackColor = RGB(128, 128, 128)
      End With
  
  Else: Call Yes_Click
      'With Me.IncrementalImpactPricingInput1
      '.Enabled = True
      '.BackColor = RGB(255, 255, 255)
      'End With
  
      'With Me.IncrementalImpactFundingInput1
      '.Enabled = True
      '.BackColor = RGB(255, 255, 255)
      'End With
  End If
  End Sub
  </code></pre>