If PivotItem.Visible issues

bjorgen

New Member
Joined
Aug 23, 2011
Messages
33
I am building a procedure to save filter values and to do so I would test the pivot field's pivotitems to see if they were visible.

When I run

Code:
if pi.visible = true then
yadda yadda
Else
End if
pi.visible is always false, even when the pivot item is visible. I found this out in debug mode. This then gives me the incorrect outcome.

I tried adding
Code:
With pf
.autosort xlmanual, .sourcename
end with
I saw that snipped in a couple of forums asking the same question and I still had the same problem.

I'm running Excel 2010.

Any help is highly appreciated!
 

Excel Facts

Easy bullets in Excel
If you have a numeric keypad, press Alt+7 on numeric keypad to type a bullet in Excel.
I did a test where I filtered the Pivot Table programatically vs manually and when I filtered it manually it worked and when I filtered it programatically it didn't work.

Thoughts?
 
Upvote 0

Forum statistics

Threads
1,224,617
Messages
6,179,915
Members
452,949
Latest member
beartooth91

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top