Command Button question
On my UserForm I have a ListBox (ListBox1) and 2 Command Buttons (Edit Name,
Delete Name). When I click on one of the two command buttons it runs code to
go to the source for the ListBox and selects the name and then allows you to
Edit or Delete the name.
What I need is a piece of code which will prevent the code associated to
either Command Button from running if no name is selected in ListBox1
I tried:
EditName ()
If ListBox1.Value = "" Then GoTo BlankList
My Code here
BlankList:
End Sub
|