Private Sub Worksheet_PivotTableUpdate(ByVal Target As PivotTable)
With Selection.Interior
.Pattern = xlSolid
.PatternColorIndex = xlAutomatic
.ThemeColor = xlThemeColorAccent1
.TintAndShade = 0
.PatternTintAndShade = 0
End With
End Sub
Sub Test()
Dim CellValue As String
Dim c As Range
Sheets("Previous").Select
Range("A1").Select
Sheets("Test11").Select
Range("A1").Select
Do
Sheets("Previous").Select
CellValue = ActiveCell.Value
Sheets("Test11").Select
If ActiveCell.Value <> CellValue Then
Worksheet_PivotTableUpdate
End If
ActiveCell.Offset(0, 1).Select
Sheets("Previous").Select
ActiveCell.Offset(0, 1).Select
Loop Until IsEmpty(ActiveCell)
End Sub