Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hello -
I have a Workbook that contains Department level data (each dept has it's own sheet), plus a number of 'helper' and consolidation sheets. In addition, in accordance with table-driven macros, there's a sheet (called 'ADMIN') that holds information related to the WHAT and TO WHOM relationships. I'd like to have a macro that will, from this one main workbook, create a series of sub-workbooks. The ADMIN table contains two simple pieces of information: [** data starts in row 2, with headers above] Column A: sheet name (a 4-digit #, eg 1234) Column B: Manager Name Column A values DO NOT repeat ... column B values may repeat (ie, a manager has multiple depts). The macro should complete the following steps: 1) create 2 folders in the ActiveWorkbook.Path -- 'Depts' and 'Managers' 2) separate workbooks are created for each sheet in col A (named as sheetname) 3) saved to 'Depts' folder 4) separate WB created for each manager, containing their depts (same sheetnames) 5) saved to 'Managers' folder Original workbook (containing all sheets) should remain intact (ie, no changes) -- sub-workbooks should be values only (no links, formulas, etc.) Can you help create this macro? or at least help me get started?? Thanks very much for ANY help you can provide! Rgds, Ray |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hello -
Does anyone have any ideas on my situation below? Thanks, ray On Jan 19, 11:01*am, Ray wrote: Hello - I have a Workbook that contains Department level data (each dept has it's own sheet), plus a number of 'helper' and consolidation sheets. In addition, in accordance with table-driven macros, there's a sheet (called 'ADMIN') that holds information related to the WHAT and TO WHOM relationships. *I'd like to have a macro that will, from this one main workbook, create a series of sub-workbooks. The ADMIN table contains two simple pieces of information: [** data starts in row 2, with headers above] Column A: *sheet name (a 4-digit #, eg 1234) Column B: *Manager Name Column A values DO NOT repeat ... column B values may repeat (ie, a manager has multiple depts). The macro should complete the following steps: 1) *create 2 folders in the ActiveWorkbook.Path -- 'Depts' and 'Managers' 2) *separate workbooks are created for each sheet in col A (named as sheetname) 3) *saved to 'Depts' folder 4) *separate WB created for each manager, containing their depts (same sheetnames) 5) *saved to 'Managers' folder Original workbook (containing all sheets) should remain intact (ie, no changes) -- sub-workbooks should be values only (no links, formulas, etc.) Can you help create this macro? *or at least help me get started?? Thanks very much for ANY help you can provide! Rgds, Ray |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Start here for ideas.
http://www.rondebruin.nl/tips.htm "Ray" wrote: Hello - Does anyone have any ideas on my situation below? Thanks, ray On Jan 19, 11:01 am, Ray wrote: Hello - I have a Workbook that contains Department level data (each dept has it's own sheet), plus a number of 'helper' and consolidation sheets. In addition, in accordance with table-driven macros, there's a sheet (called 'ADMIN') that holds information related to the WHAT and TO WHOM relationships. I'd like to have a macro that will, from this one main workbook, create a series of sub-workbooks. The ADMIN table contains two simple pieces of information: [** data starts in row 2, with headers above] Column A: sheet name (a 4-digit #, eg 1234) Column B: Manager Name Column A values DO NOT repeat ... column B values may repeat (ie, a manager has multiple depts). The macro should complete the following steps: 1) create 2 folders in the ActiveWorkbook.Path -- 'Depts' and 'Managers' 2) separate workbooks are created for each sheet in col A (named as sheetname) 3) saved to 'Depts' folder 4) separate WB created for each manager, containing their depts (same sheetnames) 5) saved to 'Managers' folder Original workbook (containing all sheets) should remain intact (ie, no changes) -- sub-workbooks should be values only (no links, formulas, etc.) Can you help create this macro? or at least help me get started?? Thanks very much for ANY help you can provide! Rgds, Ray . |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Creating a Drop Down List with Step by Step Instructions for 2007 | Excel Worksheet Functions | |||
Export contents of multi-column listbox | Excel Programming | |||
Need step by step to add invoice numbering to excel template | New Users to Excel | |||
What is the step-by-step procedure for making a data list? | Excel Discussion (Misc queries) | |||
I need step by step instructions to create a macro for 10 imbedde. | Excel Worksheet Functions |