Andy,
Thanks again. Unfortunately still no joy. Please could you take another look?
Thanks so much.
My code is as follows (spreadsheet also attached):
Sheet 4 (Sheet PT is on):
Option Explicit
Private Sub ComboBox1_Change()
If Worksheets("Sheet3").ComboBox1.ListIndex < 0 Then
Exit Sub
End If
Select Case LCase(Worksheets("Sheet3").ComboBox1.Value)
Case Is = "<20"
With Worksheets("Sheet4").PivotTables("pivottable1")
.PageFields("Age").CurrentPage = "<20"
End With
Case Is = "20-29"
With Worksheets("Sheet4").PivotTables("pivottable1")
.PageFields("Age").CurrentPage = "20-29"
End With
End Select
End Sub
This Workbook:
Option Explicit
Private Sub Workbook_Open()
With Worksheets("Sheet3").Shapes("ComboBox1")
With .OLEFormat.Object.Object
.Clear
.AddItem "<20"
.AddItem "20-29"
End With
End With
End Sub
Thank you
Bookmarks