Hi,
I am looking to create a box on a form that will change color based on whether or not a cell has been filled on the table. I am using this as a visual validation on the form so people can tell whether they have entered the data without going to the table.
I was thinking of using IF then else statement but I am not quite sure how to call the cell on the table.
Thinking like...
Private Sub Form_Current()
If IsNull(ActiveSheet.Range("F1").Value) = True Then
Textbox1.BackColor = vbWhite
Else
Textbox1.BackColor = vbRed
End If
End Sub
But it seems to cause a bug when viewing the form. Any thoughts?
Thanks!