MACRO: Reorganizing sheets from multiple workbooks, retitling and saving. Objects defined in master wb

RUSTYATVBA

New Member
Joined
Feb 25, 2018
Messages
1
I am new here so please bear with me. My career has taken me away from VBA and I am now very rusty.

Every month we take 1 sheet from 3 different files and create specific project files. The sheets are renamed and the new project files are saved in a specific location.

In plain English, Copy sheet A1 from Book A to new book "P1" and rename sheet "A Data", Copy sheet B1 from Book B to "P1" and rename sheet "B Data", Copy sheet C1 to from Book C to book "P1" and rename sheet "C Data", Save file to location specified (column G) and name new workbook as "01". Repeat until last row is complete.

The goal of using the master sheet is all objects can be changed on this sheet and the code does not have to be updated.

Here is the master sheet:

Source Folder:
C:\Users\RUSTYATVBA\Desktop\Testing\Book A.xlsx
C:\Users\RUSTYATVBA\Desktop\Testing\Book B.xlsx
C:\Users\RUSTYATVBA\Desktop\Testing\Book C.xlsx
File:
Book A.xlsx
Book B.xlsx
Book C.xlsx
New Sheet Name:
A Data
B Data
C Data
Month:
Project:
Save location:
Sheet look up:
A1
B1
C1
01
P1
C:\Users\RUSTYATVBA\Desktop\Save\P1
A2
B2
C2
01
P2
C:\Users\RUSTYATVBA\Desktop\Save\P2
A3
B3
C3
01
P3
C:\Users\RUSTYATVBA\Desktop\Save\P3

<tbody>
</tbody>
 

Excel Facts

Using Function Arguments with nested formulas
If writing INDEX in Func. Arguments, type MATCH(. Use the mouse to click inside MATCH in the formula bar. Dialog switches to MATCH.

Forum statistics

Threads
1,216,099
Messages
6,128,819
Members
449,469
Latest member
Kingwi11y

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top