Hi guys
(Question is in regard to Excel for Mac 365)
I have a fairly massive workbook consisting of around 40-50 sheets. Three of the sheets contains common variables / master data and some calculations, and values from these three are then used in separate sheets per department. In order to uphold security protocols, I need to export each department sheet, together with the three common variables sheets, into a separate file named after the department sheet, which is then shared via Onedrive to each department head.
So typically, the workbook consist of the following sheets;
Variables1
Variables2
Variables3
Department1
Department2
[...]
Department30
The goal is to get a macro or some other way to export this into 30 new and separate Excel files, stored in a specific file path on a Onedrive setup. Where each file would consist of the following sheets;
Variables1
Variables2
Variables3
DepartmentX (where X is each individual department name)
The files should be named "DepartmentX.xlsx" (again, X representing each department), based on the sheet name of each department. This *could* be hard-coded, as the department names, sheetnames for the Variables sheets and filepath will not change.
Is there a way to create a Macro to accomplish this with a "one-click-solution", as this is a repetitive task? I'm definitely not a VBA wizard, I have messed around a bit based on some tips I found, but so far not been successful.
Thanks!
(Question is in regard to Excel for Mac 365)
I have a fairly massive workbook consisting of around 40-50 sheets. Three of the sheets contains common variables / master data and some calculations, and values from these three are then used in separate sheets per department. In order to uphold security protocols, I need to export each department sheet, together with the three common variables sheets, into a separate file named after the department sheet, which is then shared via Onedrive to each department head.
So typically, the workbook consist of the following sheets;
Variables1
Variables2
Variables3
Department1
Department2
[...]
Department30
The goal is to get a macro or some other way to export this into 30 new and separate Excel files, stored in a specific file path on a Onedrive setup. Where each file would consist of the following sheets;
Variables1
Variables2
Variables3
DepartmentX (where X is each individual department name)
The files should be named "DepartmentX.xlsx" (again, X representing each department), based on the sheet name of each department. This *could* be hard-coded, as the department names, sheetnames for the Variables sheets and filepath will not change.
Is there a way to create a Macro to accomplish this with a "one-click-solution", as this is a repetitive task? I'm definitely not a VBA wizard, I have messed around a bit based on some tips I found, but so far not been successful.
Thanks!