I have the following code to add a 'record number' in column A, and a 'name" (from a text box entry) in Column B for each new row of data which is input from a userform:
FYI, my first row of data is constant and cannot be deleted, and begins with a "1" in cell $A$2 (Row 1 is a header and contains other values/data).
I then have another userform and routine where the any names added in column B (a Range named "NameList") can be deleted, after being selected from a combo box:
So I may have a sheet that look like this:
A B
Header Row...
1 Former Employee
2 Bill
3 Bob
4 Becky
5 Beth
My problem is that I also need to delete the corresponding record number, and if the record number is in the middle, i.e., say "Bob" was deleted from above, that not only would the "3" be deleted, but the records numbers would also shift up and recalculate to the correct number (in this example, "4" would become "3" and "5" would become "4").
Any help is greatly appreciated!
-HeyInKy
Bookmarks