Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Logic to Determine if a Data Pivot Field Exist?

Is there a way that you can tell whether or not a Data Pivot Fiel
exists in a pivot table. For example, I want to remove a Data Pivo
Field item IF it exists in a pivot table. When I record the removal o
this item I get:

Range("C7").Select
ActiveSheet.PivotTables("Data1").AddFields RowFields:="Quarter"
ActiveSheet.PivotTables("Data1").PivotFields("Aver age of Seed 1"). _
Orientation = xlHidden

If its not there in the first place I cannot remove it in code. I wan
to be able to say if Data1 exists in the Data Pivot Field, then remov
it, otherwise do nothing.

Thank-yo

--
Message posted from http://www.ExcelForum.com

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 Field in Field List but Not Source Data AP[_2_] Excel Discussion (Misc queries) 0 November 1st 07 04:06 PM
Routine with fuzzy logic to determine the relative comparison of two strings? Elmer Smurdley Excel Worksheet Functions 7 October 13th 07 04:01 PM
Logic for Placing Multiple field Returns in a Cell SCHNYDES Excel Discussion (Misc queries) 4 October 22nd 05 12:10 AM
Determine data type for Pivot Field Mike Dudash Excel Programming 0 January 22nd 04 09:20 PM
determine cell is part of pivot item or pivot field isskiran Excel Programming 3 December 8th 03 07:18 PM


All times are GMT +1. The time now is 12:49 PM.

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"