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: 1,560
Default Hiding a PivotField

I'm about to go crazy here. I'm attempting to hide (change the orientation)
of a field in a pivot table. I recorded the step of removing a data field
from the pivot table. The following is the code:

ActiveSheet.PivotTables("Contractural_NCLs_US").Pi votFields("NCO_w_INIT").Orientation = xlHidden

The recorded code does not work. I keep getting the error msg:
Unable to set the Orientation property of the PivotField class. Amazing
that even the recorded VBA code doesn't work. The pivot table name & pivot
field names are correct. This has got me stumped.

Help, please.

Thanks,

David
 
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
turn off pivotfield sort sugargenius Excel Programming 1 February 22nd 07 11:15 PM
PivotField refreshment witek Excel Programming 1 July 13th 06 05:58 PM
PivotField AfterUpdate event? Snowsride Excel Programming 0 January 11th 06 01:12 PM
PivotField select all CinqueTerra Excel Programming 3 December 11th 05 12:55 AM
Hiding a pivotfield using code Todd Huttenstine Excel Programming 1 June 10th 04 05:01 PM


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

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

About Us

"It's about Microsoft Excel"