I have a textbox on my form and want it to be linked to a cell say A7. When B7 < 40 (which is days calculated between 2 dates) the textbox becomes visible…
Seems so frustratingly simple but cannot get it to work... Thanks in advance...
Private Sub TextBox1_Change()
If Cell(A7) > 40 Then
ActiveSheet.Shapes("Textbox1").Visible = False
Else
ActiveSheet.Shapes("Textbox1").Visible = True
End If
End Sub
Seems so frustratingly simple but cannot get it to work... Thanks in advance...
Private Sub TextBox1_Change()
If Cell(A7) > 40 Then
ActiveSheet.Shapes("Textbox1").Visible = False
Else
ActiveSheet.Shapes("Textbox1").Visible = True
End If
End Sub