Filter PivotTable Field by VBA

S

Slim Slender

Does anyone know how to 'generalize' the following:

..PivotItems("1/18/2009").Visible = False
..PivotItems("1/22/2009").Visible = False

Can I replace them with something that says don't show anything
after a certain date or less than a certain age ,
like don't show if item (date) is greater than Today() - 7.?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top