I prepare a spreadsheet for a committee that tracks performance a few times per year.
I have 4 tabs that each track a separate component pertaining to the performance of one person.
Each person has the following sheets: Cover sheet (with basic background info), KPI (key performance indicators), Productivity, Feedback
The tabs are titled like this: Last name (or sometimes "Lastname Firstinitial") - Worksheettitle
Ferguson - Cover
Ferguson - KPI
Ferguson - Productivity
Ferguson - Feedback
Smith A - Cover
Smith A - KPI
Smith A - Productivity
Smith A - Feedback
There are usually at least 20 and sometimes 30 separate employees (80-120 tabs).
I want to write a VBA that will group worksheets by employee and save them as a separate PDF for each employee in the sheet.
However, since the worksheet names have more than the employee's name in common, I wasn't sure how to avoid grouping the sheets by the other common elements. In other words, I don't want to end up with a PDF that has all the "cover" sheets and a second one with all the "KPI" sheets and so on. Is there a strategy to do this? One thing I thought I might do is establish a single worksheet "legend" that lists employees and the nomenclature used for sheet naming. For example:
Bob Ferguson - Ferguson
Alvin Smith - Smith A
The VBA would then group any sheets with names containing the shorthand version of the employee name as listed.
Thanks in advance for your help!
I have 4 tabs that each track a separate component pertaining to the performance of one person.
Each person has the following sheets: Cover sheet (with basic background info), KPI (key performance indicators), Productivity, Feedback
The tabs are titled like this: Last name (or sometimes "Lastname Firstinitial") - Worksheettitle
Ferguson - Cover
Ferguson - KPI
Ferguson - Productivity
Ferguson - Feedback
Smith A - Cover
Smith A - KPI
Smith A - Productivity
Smith A - Feedback
There are usually at least 20 and sometimes 30 separate employees (80-120 tabs).
I want to write a VBA that will group worksheets by employee and save them as a separate PDF for each employee in the sheet.
However, since the worksheet names have more than the employee's name in common, I wasn't sure how to avoid grouping the sheets by the other common elements. In other words, I don't want to end up with a PDF that has all the "cover" sheets and a second one with all the "KPI" sheets and so on. Is there a strategy to do this? One thing I thought I might do is establish a single worksheet "legend" that lists employees and the nomenclature used for sheet naming. For example:
Bob Ferguson - Ferguson
Alvin Smith - Smith A
The VBA would then group any sheets with names containing the shorthand version of the employee name as listed.
Thanks in advance for your help!