Sub AddTogether()
With ThisWorkbook.PivotCaches.Create(xlDatabase, Range("A1").CurrentRegion).CreatePivotTable(Range("E2"), "PivotNameSalary")
.PivotFields("Name").Orientation = xlRowField
.AddDataField .PivotFields("Salary"), "Sum Of Salary", xlSum
.ColumnGrand = False
.RowGrand = False
.RowAxisLayout xlTabularRow
End With
End Sub