PanzerAttack
Board Regular
- Joined
- Jan 3, 2008
- Messages
- 197
Hi been a while since I've posted and I seem to have forgetten so much.
I have a sheet (Selection) where I want my users to select from a pivot table (Cell K13) a users name. When they do so, then the same name is selected in all the other pivot tables in the workbook. As a snapshot, this is what I have. But nothing is happening, what have I left out?
Private Sub Worksheet_Change(ByVal Target As Range)
On Error Resume Next
Application.ScreenUpdating = False
Application.EnableEvents = False
Dim OwnerSelection
Let OwnerSelection = ActiveSheet.Range("K13")
If Target.Address = "$K$13" Then
Sheets("AccountNumber").Select
ActiveSheet.PivotTables("PivotTable1").PivotFields("Owner").CurrentPage = OwnerSelection
Application.EnableEvents = True
Application.ScreenUpdating = True
End If
End Sub
Please help, I'm at a loss.
I have a sheet (Selection) where I want my users to select from a pivot table (Cell K13) a users name. When they do so, then the same name is selected in all the other pivot tables in the workbook. As a snapshot, this is what I have. But nothing is happening, what have I left out?
Private Sub Worksheet_Change(ByVal Target As Range)
On Error Resume Next
Application.ScreenUpdating = False
Application.EnableEvents = False
Dim OwnerSelection
Let OwnerSelection = ActiveSheet.Range("K13")
If Target.Address = "$K$13" Then
Sheets("AccountNumber").Select
ActiveSheet.PivotTables("PivotTable1").PivotFields("Owner").CurrentPage = OwnerSelection
Application.EnableEvents = True
Application.ScreenUpdating = True
End If
End Sub
Please help, I'm at a loss.