Microsoft Excel - filter a date in a pivot table based on the content of a cell
Asked By Cherifa Hima on 04-Feb-13 09:53 PM
Hi,
I have this code that allows me to filter a date in a pivotable based on cell G1. How to modify the code to filter the date between two dates based on cell G1 and G2. Thanks.
| Sub
Worksheet_Change() |
| |
|
ActiveSheet.PivotTables("PivotTable1").PivotFields("Date").CurrentPage
= Range("G1").Text |
| |
|
End Sub |