i am having trouble working with sheet arrays. i have a relatively simple task of producing a particular report which gives our customers a snapshot of their stats for a week and then saving the file twice - once as is, and secondly with no links/formulas/etc (basically paste as values for everything). from the hard coded copy, i then need to create a workbook for each customer which contains a copy of their sheet and a copy of the data sheet. so, two sheets in each customer workbook.
as an example, my master workbook contains seven worksheets: Data, Shop 1, Shop 2, Outlet 1, Outlet 2, Place 1, and Place 2. I need create 6 new workbooks. the first will contain sheets Data and Shop 1; the second will contain Data and Shop 2; the third, Data and Outlet 1; the fourth, Data and Outlet 2; the fifth, Data and Place 1, and finally, the sixth workbook will contain a copy of Data and Place 2. Each new workbook would be saved in the same folder as the original using a name from a cell on the Data tab.
i can do the hard coding bit of the macro and i know how to create a new workbook for each of the customers using sheet(array("xxx","yyy")).copy. where i am struggling is putting it altogether so that at runtime, the macro will save the original workbook as values only, and then create the new workbooks for each of my customers, saving them using the customer's name from their sheet
any pointers would be a great help
as an example, my master workbook contains seven worksheets: Data, Shop 1, Shop 2, Outlet 1, Outlet 2, Place 1, and Place 2. I need create 6 new workbooks. the first will contain sheets Data and Shop 1; the second will contain Data and Shop 2; the third, Data and Outlet 1; the fourth, Data and Outlet 2; the fifth, Data and Place 1, and finally, the sixth workbook will contain a copy of Data and Place 2. Each new workbook would be saved in the same folder as the original using a name from a cell on the Data tab.
i can do the hard coding bit of the macro and i know how to create a new workbook for each of the customers using sheet(array("xxx","yyy")).copy. where i am struggling is putting it altogether so that at runtime, the macro will save the original workbook as values only, and then create the new workbooks for each of my customers, saving them using the customer's name from their sheet
any pointers would be a great help