title: Change ActiveX Control Textbox color Based on Cell Value
body: <p>I have three Form Controls option buttons linked to a cell, lets say A1. When optionbutton1 is selected A1 = 1, when optionbutton2 is selected A1 = 2, and when optionbutton3 is selected A1 = 3. When A1 = 1 or 2, I want my ActiveX Controls textbox to be white and when A1 = 3, I want the textbox to be yellow. This is code that I came up with but the color of the textbox isn't changing.</p>
  
  <pre><code>Private Sub TextBox1_Change()
  
  If Sheets(12).Range("A1") = 3 Then
  TextBox1.BackColor = RGB(255, 255, 0)
  Else: TextBox1.BackColor = RGB(0, 0, 0)
  End If
  
  End Sub
  </code></pre>