Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Setting pivot field using vba


Hi all,

I'm running into a problem when I tried to set the value of pivot fiel
(eg. Segment). It works fine when the input SEG exists in the drop dow
menu. However, I can't seem to get it to choose (blank) if SEG no
found.

Any comments or ideas are welcomed. Thanks in advance!



If ActiveSheet.PivotTables("PivotTable1").PivotFields ("Segment").Value
= SEG Then
ActiveSheet.PivotTables("PivotTable1").PivotFields ("Segment"). _
CurrentPage = "(blank)"
Else
ActiveSheet.PivotTables("PivotTable1").PivotFields ("Segment"). _
CurrentPage = SEG
End I

--
h2
-----------------------------------------------------------------------
h2o's Profile: http://www.excelforum.com/member.php...fo&userid=3098
View this thread: http://www.excelforum.com/showthread.php?threadid=50653

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
Changing a field setting in a pivot table The Rook[_2_] Excel Discussion (Misc queries) 3 September 5th 08 05:29 PM
Setting default pivot table field setting to "sum" Mr. Moose Excel Discussion (Misc queries) 2 December 21st 04 04:43 PM
Setting pivot table field (current page) to a chosen value Grant[_5_] Excel Programming 1 August 5th 04 02:24 AM
Setting Pivot Table Page Field Names using VBA Ron McCormick[_2_] Excel Programming 1 November 7th 03 12:45 PM
Setting Pivot Table Page Field Names using VBA Ron McCormick[_2_] Excel Programming 0 November 7th 03 10:35 AM


All times are GMT +1. The time now is 03:38 PM.

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"