Excel Macro Question

declasse

New Member
Joined
Apr 13, 2011
Messages
2
Hi,

I'm hoping somebody can help me...

I have multiple excel workbooks in a folder and I would like to have a macro to take specific tabs from each file and insert them into a new master workbook.

The tabs I need would be named "Data", "Sheet 1" and "REM data"

Is there some code I can use to do this for me?

Thanks in Advance if anybody is able to help!
 

Excel Facts

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying
Welcome to the board.

So you have a folder full of sheets and each one has 3 specific tabs. You need to copy these into a master sheet

Will all the sheets have all 3 tabs?
How would you want to rename the sheets as they get moved?
What version of XL are you using? (goes to how many tabs you can have in 1 workbook)

Broadly speaking, given answers to these questions, the answer is yes.
 
Upvote 0
Thanks for the reply! I am using 2007 and 2003. So code for either is okay.

Each file will contain either "Data", "Sheet 1" and "REM data"

Never multiples though. So each file will contain multiple tabs but one of them will be named the above.

I am trying to learn but at the moment I really need to find some code I can use to do this.
 
Upvote 0

Forum statistics

Threads
1,224,522
Messages
6,179,297
Members
452,903
Latest member
Knuddeluff

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