Hi,
I recorded the following macro:
Sub PTMonth()
Sheets(“Dubuque Det”).Select
ActiveSheet.PivotTables(“PivotTable1”).PivotFields(“Period”).CurrentPage = “MAR08”
End Sub
I tried to change the = portion to refer to a different worksheet (see code below) and it just won’t work. I get a “Unable to set the _Default property of the PivotItem class” run-time error 1004 message. Any ideas why it’s not working… I swear I’ve done this before and it worked???
Thanks as always!!
Lana
Sub PTMonth()
Sheets(“Dubuque Det”).Select
ActiveSheet.PivotTables(“PivotTable1”).PivotFields(“Period”).CurrentPage = Sheet2.Range(“A4”)
End Sub