Hello All,
I did a search and found a few helpful threads, but nothing to actually do exactly what I need.
I'm working on a spreadsheet for manager's use, and I have run into an issue. I have all the data on a tab, and am using a general sheet that the managers can enter in their employee number, to see all their employees current scores.
It was requested that they have access to the data for each employee. I decided to just make a simple pivot based off their employee ID, that would update when they entered in their ID. This would allow them to open up the detail on a seperate tab by double clicking the pivot.
This is the code I'm currently using, yet I need it to refresh the pivot once the ID is entered into cell B2.
Any help would be greatly appreciated.
The below is the code I'm using to update another pivot table on a different tab, which is actually used to pull in each employees scores and such.
Unless there is some magical way to link a cell to a pivot table that will allow the manager to just click the individual employee ID to pull that specific data.
Any help would be greatly appreciated.
I did a search and found a few helpful threads, but nothing to actually do exactly what I need.
I'm working on a spreadsheet for manager's use, and I have run into an issue. I have all the data on a tab, and am using a general sheet that the managers can enter in their employee number, to see all their employees current scores.
It was requested that they have access to the data for each employee. I decided to just make a simple pivot based off their employee ID, that would update when they entered in their ID. This would allow them to open up the detail on a seperate tab by double clicking the pivot.
This is the code I'm currently using, yet I need it to refresh the pivot once the ID is entered into cell B2.
Code:
Sub Pivot1()
ActiveSheet.PivotTables("ManagerData").PivotFields("REVIEW_EMP_MGR_ID").CurrentPage = Range("B2").Value
End Sub
Any help would be greatly appreciated.
The below is the code I'm using to update another pivot table on a different tab, which is actually used to pull in each employees scores and such.
Code:
Private Sub Worksheet_Change(ByVal Target As Range)
If Intersect(Target, Range("B2")) Is Nothing Then Exit Sub
On Error Resume Next
Application.EnableEvents = False
Sheets("Manager PIVOT DATA").PivotTables("PivotManager").PivotCache.Refresh
Application.EnableEvents = True
End Sub
Unless there is some magical way to link a cell to a pivot table that will allow the manager to just click the individual employee ID to pull that specific data.
Any help would be greatly appreciated.