Private Sub Worksheet_Calculate()
With Me.PivotTables(1).TableRange1
.Borders.Weight = xlHairline
.Columns(1).BorderAround Weight:=xlThin 'contour
.Columns(1).Resize(, 3).BorderAround Weight:=xlThin 'contour
.Columns(1).Resize(, 5).BorderAround Weight:=xlThin 'contour
End With
End Sub