Macro to copy (import) all open worksheets from one workbook to another workbook

sdoppke

Well-known Member
Joined
Jun 10, 2010
Messages
647
Hi everyone, there is a lot on this topic , but cant find much to help with the "All open" part...

Im trying to create a macro that will copy all open worksheets from one workbook (workbook1) to another open workbook (workbook2). That parts doesnt seem to hard, but the stipulations are, it needs to import the tab names (as they are in workbook1) to workbook2, and copy over the formulas without the referenced sheet [sheet1], or in better words remove the brackets and all that is inbetween, but still leaving the formula.

Thanks everyine in advacne for any help or direction. :)

Also is it even possible to copy those worksheets (tabs) from a path, without even opening them?

sd
 

Excel Facts

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().
Thought it might help if I reword... ;)

Trying to open a worhseet from a path,

then unhide all sheets then loop through all open workbooks excluding the "this workbook" (becasue the names of workbooks change based on date daily)

Then copy all open worksheets on the newly opened workbook over to the existing workbook (keeping all the original tab names) at the end of the workbook.

Most importantly leaving the formulas and hopyfully removing and [Brackets with refernced paths]


Really appreciate any ideas you have :)

sd
 
Upvote 0
Hoping you all had a great 4th!! Anyone jave any input as to how to get this working?

Thanks in advance

sd
 
Upvote 0

Forum statistics

Threads
1,224,586
Messages
6,179,728
Members
452,939
Latest member
WCrawford

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