Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Dose anyone know how to write this code....I need to refresh a pivottable
each time Cell A4 or A6 is changed...I tried the code below but it's not working only updates on selection the cell rather that after the change has been made Thanks Private Sub Worksheet_SelectionChange(ByVal Target As Range) If Target.Address = "$A$4:$A$6" Then Application.ScreenUpdating = False TT = Range("Tab_Name") Sheets(TT).Select ActiveSheet.PivotTables("PivotTable2").PivotCache. Refresh TR = Range("Rpt_Tab") Sheets(TR).Select Application.ScreenUpdating = True End If End Sub -- Helping Is always a good thing |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Macro to clear range contents when cell contents are changed by us | Excel Programming | |||
Auto Running a macro when a field has changed | Excel Programming | |||
stop a macro from running everytime a cell is changed | Excel Programming | |||
stop from running everytime a cell is changed | Excel Programming | |||
Automaticlly Running Macro on Changed Cell | Excel Programming |