Good morning, I am editing an User Form on VBA Excel and I would like to show an alert if the user insert a certain value in a text box. I wrote this code:
If txtbox.Value < 0 Then
lbl_Alert.Visible= True
Else
lbl_alert.Visible=False
End IF
The code works properly but once the alert appears if I change the value in the text box it doesn't disappear. What string should I add to my script to let the label disappear when I change the text box value?
Thank you!
put your code under the textbox_change event
Following works fine