Hello, my name is Paul and a novice in VBA code. I have used recording macros and the internet to get by but hoping to improve my VBA by being part of Chandoo. I came across this site when searching for a solution to a problem similiar to mine named "VBA code to select the latest date from a pivot table field" post.
I have created a mock up of my problem - see attached.
Basically I want the pivot filter seen in cell G2 to be automatically be set to the latest date which in this case would be the 03/08/2014 as part of a macro run each week. I have deliberately created a blank row so it shows as up as (blank) in the pivot filter.
Each week more data is added (through a macro) and I need a VBA method to refresh the pivot table and set the filter to the latest date. Note: in the mock up the pivot source data is set just for the data range, normally this would be set for the column ranges A:C
Hope you can help, cheers Paul
I have created a mock up of my problem - see attached.
Basically I want the pivot filter seen in cell G2 to be automatically be set to the latest date which in this case would be the 03/08/2014 as part of a macro run each week. I have deliberately created a blank row so it shows as up as (blank) in the pivot filter.
Each week more data is added (through a macro) and I need a VBA method to refresh the pivot table and set the filter to the latest date. Note: in the mock up the pivot source data is set just for the data range, normally this would be set for the column ranges A:C
Hope you can help, cheers Paul