I have three sets of tabs (sheets) in the same workbook. Each of these sets of three sheets work precisely the same way, except they have different data sources. I have a macro the performs data manipulations for one set of sheets. I want to use that same macro against each of the other two sets of sheets. I do not want to copy the macro two times then "replace" the sheet names. That will work, but then I must maintain three macros. Example: I want to run the macro with "IRB" as the sheet to be selected, rather than "UserMgt":
Sheets("UserMgt").Select
Is there a way to change "UserMgt" to a variable that can be changed each time the macro is called?
Bookmarks