Sub Macro1() ' ' Macro1 Macro ' ' Cells.SpecialCells(xlLastCell).Offset(0,3).End(xlup).Select Activeworkbook.PivotCaches.create(sourcetype:=xlDatabase, SourceData:=_ Range(Range("A1"), ActiveCell.SpecialCells(xlLastCell)), Version:=6).CreatePivotTable TableDestination:= _ Selection, TableName:="PivotTable1", DefaultVersion:=6 Cells.SpecialCells(xlLastCell).Offset(0,2).End(xlUp).offset(0,1).End(xlUp).Select With ActiveSheet.PivotTables("PivotTable1") .ColumnGrand = True .HasAutoFormat = True .DisplayErrorString = False .DisplayNullString = True .EnableDrilldown = True .ErrorString = "" .MergeLabels = False .NullString = "" .PageFieldOrder = 2 .PageFieldWrapCount = 0 .PreserveFormatting = True .RowGrand = True .SaveData = True .PrintTitles = False .RepeatItemsOnEachPrintedPage = True .TotalsAnnotation = False .CompactRowIndent = 1 .InGridDropZones = False .DisplayFieldCaptions = True .DisplayMemberPropertyTooltips = False .DisplayContextTooltips = True .ShowDrillIndicators = True .PrintDrillIndicators = False .AllowMultipleFilters = False .SortUsingCustomLists = True .FieldListSortAscending = False .ShowValuesRow = False .CalculatedMembersInFilters = False .RowAxisLayout xlCompactRow End With With ActiveSheet.PivotTables("PivotTable1").PivotCache .RefreshOnFileOpen = False .MissingItemsLimit = xlMissingItemsDefault End With ActiveSheet.PivotTables("PivotTable1").RepeatAllLabels xlRepeatLabels ActiveWindow.SmallScroll Down:=-9 With ActiveSheet.PivotTables("PivotTable1").PivotFields("Department") .Orientation = xlRowField .Position = 1 End With With ActiveSheet.PivotTables("PivotTable1").PivotFields("Team") .Orientation = xlRowField .Position = 2 End With With ActiveSheet.PivotTables("PivotTable1").PivotFields("Status") .Orientation = xlRowField .Position = 3 End With With ActiveSheet.PivotTables("PivotTable1").PivotFields("Status") .Orientation = xlColumnField .Position = 1 End With ActiveSheet.PivotTables("PivotTable1").AddDataField ActiveSheet.PivotTables( _ "PivotTable1").PivotFields("Status"), "Count of Status", xlCount ActiveWindow.SmallScroll Down:=-237 ActiveWindow.ScrollColumn = 12 ActiveWindow.ScrollColumn = 13 ActiveWindow.ScrollColumn = 14 End Sub