If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > PC based Database Applications > Microsoft Excel > Confused PivotItem.visible works with =false, but does not work with =true

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 11-23-04, 14:42
TerryA TerryA is offline
Registered User
 
Join Date: Nov 2004
Posts: 2
Question Confused PivotItem.visible works with =false, but does not work with =true

I'm Confused,... PivotItem(i)=false works, PivotItem(i)=true doesn't work

'works -> pvtTable.PivotItems("productTEST").Visible = False
'doesn't works -> pvtTable.PivotItems("productTEST").Visible = True

Even when I let Excel Macro recorder do the work of selecting and then try to run it, it does not work.
Reply With Quote
  #2 (permalink)  
Old 11-23-04, 15:23
buckeye_td buckeye_td is offline
Registered User
 
Join Date: Sep 2004
Location: Charlotte, NC
Posts: 164
You only need PivotItem(i)=false. This is so you can exclude selections from your pivot table, the same as selecting the drop down box on the field and unchecking the box. If you do not have the PivotItem(i)=false statement, then the Item is included and a 'true' statement is not needed.

TD
Reply With Quote
  #3 (permalink)  
Old 11-23-04, 17:18
TerryA TerryA is offline
Registered User
 
Join Date: Nov 2004
Posts: 2
Thanks Buckeye,...

I really wanted to deselect and select different products in the pivot table. It is created by someone else and is not consistent from day to day with what is in the pivot field, generally over 200 items in the table. I guess I could do one product group, get the results and then close and reopen the spreadsheet again for a different group of products to select. Any thoughts would be greatly appreciated.
thanks again!
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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