I have a Pivot table whicih I wish to Refresh and then select "today" as the PAGE Date variable
I can get this to work with (extract )
Sub Test1
Dim Tempdate As Date
Tempdate = Date
ActiveSheet.PivotTables("PivotTable1").PivotFields("Date").CurrentPage = Tempdate
End Sub
But the format is incorrect ( selects 8/15/2007 ) , all my data is in format 15/08/2007 , even if I change the data format for the table it still doesn't select the correct items
Manually I can refresh data and just select the latest day , no worries . But I can not seem to write it into a macro
Help please you wonderful people
I can get this to work with (extract )
Sub Test1
Dim Tempdate As Date
Tempdate = Date
ActiveSheet.PivotTables("PivotTable1").PivotFields("Date").CurrentPage = Tempdate
End Sub
But the format is incorrect ( selects 8/15/2007 ) , all my data is in format 15/08/2007 , even if I change the data format for the table it still doesn't select the correct items
Manually I can refresh data and just select the latest day , no worries . But I can not seem to write it into a macro
Help please you wonderful people