Hi,
I created the macro below which inserts a pivot table. I would like it to run on any active sheet and can't figure out how. It is saved in the Personal category so it is not attached to any workbook which is what I want, but the code shows the name of the original sheet (Employee Total Hours Report) that was open when I recorded the macro. I've tried replacing with active.sheet but can't get it to work. Any help would be appreciated.
HTML Code:
Bookmarks