Hi,
I use the following macro in a userform to delete a selected row on sheet2. We are adding about 20 sheets to our workbook and I want to use the same macro on each of the new sheets. I know I can create a new userform with the macro for each of the 20 sheets and replace the "Sheet2" with the different sheet names.
Instead of having to create 20 duplicate userforms/macros with the only difference being the Sheet name, is there a way to write this macro without the sheet name, so it works on any sheet that calls the userform?
Each sheet will work independently from each other, different rows being deleted at different times on the different sheets... so putting all the sheet names in the array won't work.
Bookmarks