ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Macro to Create Workbooks & Worksheets (https://www.excelbanter.com/excel-programming/384105-macro-create-workbooks-worksheets.html)

Ciara

Macro to Create Workbooks & Worksheets
 
I have 2 seperate macro's.
Macro2 -creates a worksheet for each PCT
Macro1- creates a workbook for Health Authority.

I would like to combine the two, so that after extracting data needed
to create each workbook I use it as the datasource to create the pivot
table.

Macro 1 is based on the example-Create a new sheet for all Unique
values
Macro 2 is based on the example-Create a new workbook for each value
both on http://www.rondebruin.nl/copy5.htm#workbook

Is there are way to integrate the macros so that it a workbook is
created with macro 1 and then within this new workbook, worksheets are
created for each HA using macro 2? Also I wondered how I would going
about using a template to generate the workbooks.

TIA



All times are GMT +1. The time now is 03:21 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com