abdo meghari
Well-known Member
- Joined
- Aug 3, 2021
- Messages
- 651
- Office Version
- 2019
Hello
I need help to fix my problem .
when write in textbox2 and the optionbutton1,2 are not selected then should show message and clear textbox2 , but it will show the message twice before clear textbox2 !
thanks in advanced
I need help to fix my problem .
when write in textbox2 and the optionbutton1,2 are not selected then should show message and clear textbox2 , but it will show the message twice before clear textbox2 !
VBA Code:
Private Sub TextBox2_Change()
If Not (OptionButton1.Value) * (OptionButton2.Value) Then
MsgBox "please select one button at least": TextBox2.Value = ""
Exit Sub
Else
Call FilterData
End If
End Sub