CyrusTheVirus
Well-known Member
- Joined
- Jan 28, 2015
- Messages
- 749
- Office Version
- 365
- Platform
- Windows
Hi everyone, been a minute since I've posted, but need some VBA help.
What I need is a macro that will create a file for every change in supervisor and have that file named after the supervisor. I have this data in a table. So basically, what I need is this.
Starting Data:
I need the macro to take the header (always take the header) down to the last row of the first supervisor (Adams, Samuel), and take all the data from the header to Samuel Adam and create a new workbook with that data in it, save it to a folder already created on the desktop titled 'Supervisors', and then name that file 'Adams, Samuel', and save it within that folder. So the file would like look below.
THEN, the macro goes to the next person and does the same thing. So takes the header, then finds the next supervisor (Smith, John), copies that data, saves file into folder etc., so the new file saved in the folder would look like below.
It would then go through the entire worksheet for every change in supervisor and do the same thing. Who can help me?
What I need is a macro that will create a file for every change in supervisor and have that file named after the supervisor. I have this data in a table. So basically, what I need is this.
Starting Data:
I need the macro to take the header (always take the header) down to the last row of the first supervisor (Adams, Samuel), and take all the data from the header to Samuel Adam and create a new workbook with that data in it, save it to a folder already created on the desktop titled 'Supervisors', and then name that file 'Adams, Samuel', and save it within that folder. So the file would like look below.
THEN, the macro goes to the next person and does the same thing. So takes the header, then finds the next supervisor (Smith, John), copies that data, saves file into folder etc., so the new file saved in the folder would look like below.
It would then go through the entire worksheet for every change in supervisor and do the same thing. Who can help me?