Macro to delete specific tabs in a master file and paste new tabs copied from a number of individual files

SmcD

New Member
Joined
Jan 14, 2022
Messages
1
Office Version
  1. 365
Platform
  1. Windows
Hi,
I need to create a macro running from an open Master file.xlsx where it will firstly delete specific tabs, there are 13 of them.
Then it will look at 13 individual closed files saved in the same directory and copy a specific single tab from each of them, pastes them into the Master file and rename each tab to something else.
I will need to run this macro every month so the source of the files will change every month e.g. for Nov data, it will need to look into the Nov file, for Dec - the Dec file etc.
Would anyone be able to help? Thank you.
 

Excel Facts

Difference between two dates
Secret function! Use =DATEDIF(A2,B2,"Y")&" years"&=DATEDIF(A2,B2,"YM")&" months"&=DATEDIF(A2,B2,"MD")&" days"

Forum statistics

Threads
1,215,696
Messages
6,126,267
Members
449,308
Latest member
VerifiedBleachersAttendee

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