Create Multiple Sheets from master sheet with VBA

grungernelly

New Member
Joined
May 6, 2011
Messages
2
Hi I'm sure this can be done but I cannot for the life of me work it out.

In a nutshell I want to copy (create) multiple workbooks and name them based on the list

of filenames in Sheet1.

I have a sheet with a list of file names in column A e.g:-

A - 2011.xls
B - 2011.xls
C - 2011.xls


However, the basis of these newly 'spawned' workbooks will be all of the other

worksheets (let's say Sheet2 and Sheet3) in the master/creator workbook.

That is the first task. The second task is inserting the values of Column B (in Sheet 1

in the master sheet) into a specified cell in the newly spawned workbooks for example

these values
A
B
C

into Sheet2!A1.

The third and final task is to print Sheet2 of each new workbook to the default printer.

Can this be done? If only part of it can, this would be a great help.

Thanks in advance for your help. :)

Neil
 

Excel Facts

Pivot Table Drill Down
Double-click any number in a pivot table to create a new report showing all detail rows that make up that number

Forum statistics

Threads
1,215,497
Messages
6,125,157
Members
449,208
Latest member
emmac

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