S
stakar
I have the following problem
Im using a pivot table and i change the value of the pivot table page
This pivot table's value updates a cell.
So i want each time the specific cell is updating with the pivo
table's value to update another pivot table.
Be more specific.
The cell's value depends on pivot table's cell value (B2) by using th
formula (=B2) in the cell F14.
So, if the pivot table = 1 then the cell's value will be 1
if the pivot table = 12 then the cell's value will be 12
I want to trigger an event each time the cell's value changes so t
update another table.
I found that code but its not running and it doesnt call the routin
'ResfreshWrc'
------------------------------------------------------------
Dim MonitorCell As Variant
Private Sub Worksheet_Activate()
MonitorCell = Cells(14, 6)
End Sub
Private Sub Worksheet_Change(ByVal Target As Excel.Range)
If Cells(14, 6) <> MonitorCell Then
RefreshWrc
MonitorCell = Cells(14, 6)
End If
End Sub
-----under Module---------------------------------------
Sub RefreshWrc()
ActiveSheet.PivotTables("WRC").RefreshTable
End Sub
****************************************
Thanks in Advance
Stathis
Patras, Greec
Im using a pivot table and i change the value of the pivot table page
This pivot table's value updates a cell.
So i want each time the specific cell is updating with the pivo
table's value to update another pivot table.
Be more specific.
The cell's value depends on pivot table's cell value (B2) by using th
formula (=B2) in the cell F14.
So, if the pivot table = 1 then the cell's value will be 1
if the pivot table = 12 then the cell's value will be 12
I want to trigger an event each time the cell's value changes so t
update another table.
I found that code but its not running and it doesnt call the routin
'ResfreshWrc'
------------------------------------------------------------
Dim MonitorCell As Variant
Private Sub Worksheet_Activate()
MonitorCell = Cells(14, 6)
End Sub
Private Sub Worksheet_Change(ByVal Target As Excel.Range)
If Cells(14, 6) <> MonitorCell Then
RefreshWrc
MonitorCell = Cells(14, 6)
End If
End Sub
-----under Module---------------------------------------
Sub RefreshWrc()
ActiveSheet.PivotTables("WRC").RefreshTable
End Sub
****************************************
Thanks in Advance
Stathis
Patras, Greec