I have multiple option buttons on userfom and I need simply to do two things if any option button is clicked:
first to clear the textbox named `txtSearch`
second to clear the listbox named `lstResults`
I have more than 10 option buttons and it is not logical to repeat the same procedure for each option button
Code: Select all
Private Sub optName_Change()
With Me
.txtSearch = Empty
.lstResults.Clear
End With
End Sub