C
Cameron
Hi all,
Slowly working away on my "Medical Expences" spreadsheet and trying to add some functionality.
I've been successful (with assistance) in adding Doctors to a Named List (sorted), now I'm wanting to delete Doctors.
I've populated a ListBox of the Doctors Names ...
ListBox1.Clear
ListBox1.RowSource = ""
With Worksheets("Extra Tables")
For Each cell In .Range("Doctors")
ListBox1.AddItem cell.Value
Next
End With
Now I'm having trouble working out how to remove the selected Doctor based on the ListBox1.Value or other ListBox1 property.
I tried to perform a find whilst recording a macro in order to start with something and it saved nothing.
I've gathered I need to do the following:
a) User select Doctor to be deleted ...... Done!
b) Find selected Doctor in Doctors Named region.
c) Display and confirm deletion to user.
d) Delete Doctor from Named region.
Many thanks in advance.
Cheers,
Cameron
Slowly working away on my "Medical Expences" spreadsheet and trying to add some functionality.
I've been successful (with assistance) in adding Doctors to a Named List (sorted), now I'm wanting to delete Doctors.
I've populated a ListBox of the Doctors Names ...
ListBox1.Clear
ListBox1.RowSource = ""
With Worksheets("Extra Tables")
For Each cell In .Range("Doctors")
ListBox1.AddItem cell.Value
Next
End With
Now I'm having trouble working out how to remove the selected Doctor based on the ListBox1.Value or other ListBox1 property.
I tried to perform a find whilst recording a macro in order to start with something and it saved nothing.
I've gathered I need to do the following:
a) User select Doctor to be deleted ...... Done!
b) Find selected Doctor in Doctors Named region.
c) Display and confirm deletion to user.
d) Delete Doctor from Named region.
Many thanks in advance.
Cheers,
Cameron