I would like to use a label or textbox to display a changing value of a cell, say cell R2. And then have it trigger a color change. The code below is what I'm conceptually trying to achieve:
Private Sub TextBox1_Change()
TextBox1.Value = Range("R2").Value
With TextBox1
If .Value = 5 Then Range("F2").Interior.ColorIndex = 23
End With
End Sub
Please advise, Thank you!
Private Sub TextBox1_Change()
TextBox1.Value = Range("R2").Value
With TextBox1
If .Value = 5 Then Range("F2").Interior.ColorIndex = 23
End With
End Sub
Please advise, Thank you!