My code has been showing expected expression error
The error that i am getting is from
ActiveWorkbook.Worksheets("Sheet2").PivotTables("PivotTable16").PivotCache. _
        CreatePivotTable TableDestination:="Sheet2!E3F16", TableName:="PivotTable17", DefaultVersion:=xlPivotTableVersionCurrent
Full macro:
Sub Macro5()
'
' Macro5 Macro
'
'
    ActiveCell.Select
    ActiveWorkbook.Worksheets("Sheet2").PivotTables("PivotTable16").PivotCache. _
        CreatePivotTable TableDestination:="Sheet2!E3F16", TableName:="PivotTable17", DefaultVersion:=xlPivotTableVersionCurrent
    Sheets("Sheet2").Select
    Cells(3, 16).Select
    With ActiveSheet.PivotTables("PivotTable17")
        .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
End Sub
 
    