I'm working on the following macro:
A row contains a drop-down list that, depending on the selection, adds or deletes rows below the current row. The initial row and the added rows comprise a single "entry," and there are multiple entries.
My problem lies in that right now the VBA script I've written to perform this task has the first drop-down list's cell number hard-coded. This could be OK, except I need to apply the same functionality to the drop-down lists of all the entries, and since rows are being added and deleted constantly, their locations keep changing.
I was wondering if there was a way to identify a cell (that's not unique) that I could check for, analogous to the "class" attribute in HTML.
Or, is there another way to do what I'm wanting that I'm not thinking of.
Thanks for your help,
B.J.
Bookmarks