cgeorge4
Board Regular
- Joined
- Jul 24, 2011
- Messages
- 91
I am so happy to have found this fabulous help site. I am extremely adept using Excel - but begining to use Macros - yet I can record, write some simple ones, and certainly understand reading them.
I need a macro that will create a pivot table on all my worksheets within my workbook.
Here are the specifics of my workbook:
1 sheet is always the master and is called "Text Source" - this particular sheet does not require a pivot table.
Other than the 'master' sheet - there maybe 1 to 10 additional sheets created each month based on that month's data -and each sheet will have a different name. ( I successfully wrote/recorded a macro that creates these additional sheets and it works perfectly)
I know that the problem is with the pivot table cache - where the pivot table number changes each time you create a pivot table. I have tried diff macros and the problem is always the next pivot table number.
Please help me: I need a macro to create a pivot table on each new sheet - no matter how many new sheets there r please.
Here r my worksheet details:
1) Each new sheet will always have a different name
2) Each new sheet will always have the same number of columns (A to N)
3) Each new sheet will always have a header row - in row 1 (A to N)
4) Each new sheet will always have various numbers of rows (not more than 65k though)
5) Each pivot table placement should be on P4
6) From the field list - "Site Code" should be placed in "Row Labels"
7) From the field list - "Site Code" should be placed in "Values" as a count
8) The Field List should be hidden after the pivot tables have been created.
9) The pivot table syle and color should be "Pivot Style Dark 7"
10) And last but not least - the whole sheet font should be "Calibri" w/ font size "8".
I read a lot of blogs and hope that I have written my details clearly.
Please help....I have been trying for 3 days and tears are my next option.
Thank you soooooo much.
Juicy,
I need a macro that will create a pivot table on all my worksheets within my workbook.
Here are the specifics of my workbook:
1 sheet is always the master and is called "Text Source" - this particular sheet does not require a pivot table.
Other than the 'master' sheet - there maybe 1 to 10 additional sheets created each month based on that month's data -and each sheet will have a different name. ( I successfully wrote/recorded a macro that creates these additional sheets and it works perfectly)
I know that the problem is with the pivot table cache - where the pivot table number changes each time you create a pivot table. I have tried diff macros and the problem is always the next pivot table number.
Please help me: I need a macro to create a pivot table on each new sheet - no matter how many new sheets there r please.
Here r my worksheet details:
1) Each new sheet will always have a different name
2) Each new sheet will always have the same number of columns (A to N)
3) Each new sheet will always have a header row - in row 1 (A to N)
4) Each new sheet will always have various numbers of rows (not more than 65k though)
5) Each pivot table placement should be on P4
6) From the field list - "Site Code" should be placed in "Row Labels"
7) From the field list - "Site Code" should be placed in "Values" as a count
8) The Field List should be hidden after the pivot tables have been created.
9) The pivot table syle and color should be "Pivot Style Dark 7"
10) And last but not least - the whole sheet font should be "Calibri" w/ font size "8".
I read a lot of blogs and hope that I have written my details clearly.
Please help....I have been trying for 3 days and tears are my next option.
Thank you soooooo much.
Juicy,