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

How to create a cell-sized chart?
Tiny charts, called Sparklines, were added to Excel 2010. Look for Sparklines on the Insert tab.

Forum statistics

Threads
1,224,597
Messages
6,179,813
Members
452,945
Latest member
Bib195

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