I am trying to change the filter of a date drop down when refreshing a pivot table via VBA my current code is as follows...
Dim myweekstart As Date
myweekstart = Worksheets("data").Range("D1").End(xlDown).Value
Range("b3").value = myweekstart
B3 is the cell ref of the drop down box in the pivot table
Dim myweekstart As Date
myweekstart = Worksheets("data").Range("D1").End(xlDown).Value
Range("b3").value = myweekstart
B3 is the cell ref of the drop down box in the pivot table