Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,560
Default VBA to set Pivot Table formats

I intend to re-set formats using the worksheet open event
My question is about referencing cells within the pivot table with the VBA
code
For example, if I want to work on the format of the table column headers
will there be a reference like: MyPivotTable.rows(1) that I can use?
Thanks - any advice will be appreciated
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,298
Default VBA to set Pivot Table formats

not with 2003

try this though ....

Dim pt As PivotTable
Dim topRow As Range
Set pt = ActiveSheet.PivotTables(1)
Set topRow = pt.TableRange1.Rows(1)
topRow.Select

"David" wrote:

I intend to re-set formats using the worksheet open event
My question is about referencing cells within the pivot table with the VBA
code
For example, if I want to work on the format of the table column headers
will there be a reference like: MyPivotTable.rows(1) that I can use?
Thanks - any advice will be appreciated

Reply
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
Pivot Table Formats PerryK Excel Discussion (Misc queries) 2 March 2nd 09 07:00 PM
pivot table formats rcrBMS Excel Discussion (Misc queries) 0 June 7th 06 02:26 PM
Dates Formats in Pivot Table Help Louis Markowski Excel Worksheet Functions 4 February 11th 06 09:49 PM
Pivot table formats Darby Excel Discussion (Misc queries) 2 October 7th 05 02:32 PM
Pivot Table Formats in Excel 97 Raul[_3_] Excel Programming 1 February 24th 04 03:40 AM


All times are GMT +1. The time now is 04:16 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"