LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 146
Default Referring to all pivot tables in a workbook

Hi,

I have many worksheets each with three pivot tables residing on them. I
would like call up formatting procedures to apply identical formatting to
each group of three pivot tables without applying the same formatting to
worksheets that don't contain pivot tables. The first 5 sheets in my workbook
don't contain pivot tables while the 6th and beyond all do. Here is the code
that I have so far:

For Each ws In ActiveWorkbook.Worksheets
For Each pt In ws.PivotTables
Call Format_Grouping_Titles
Call Format_Columns_RC
Call Format_ThinLines_5
Call Format_ThinLines_6
Call Format_ThinLines_7
Call Format_ThinLines_9
Call Format_Titles_1
Call Anamolies
Call Home
Next pt
Next ws

What am I doing wrong? This code only applies the pivot table formatting sub
procedures to the Summary sheet which doesn't even have a pivot table. How
about starting the formatting procedures on the worksheet starting after the
Summary sheet and applying this formatting to all worksheets that follow? The
Summary sheet is the 5th sheet in my workbook, so I'd like to start this
formatting on the 6th sheet and beyond. Any pointers?

Thanks in advance!


--
Kent Lysell
Financial Consultant
Ottawa, Ontario
W: 613.948-9557
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Refreshing all pivot tables in workbook klysell Excel Programming 5 August 1st 07 06:16 PM
Help referring to query tables by name [email protected] Excel Programming 2 May 6th 06 12:23 PM
Copying Pivot Tables from one workbook to another sas Excel Worksheet Functions 1 January 18th 06 11:56 AM
Refresh all pivot tables in a workbook nc Excel Discussion (Misc queries) 3 June 22nd 05 06:37 PM
Pivot Tables referring to external data query Excel GuRu Excel Discussion (Misc queries) 4 December 29th 04 06:29 PM


All times are GMT +1. The time now is 10:54 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"