Hi everyone
I have syntax error on the code below. I can't find out the problem, please could anyone help?
Also, is there a difference of the PivotTableVersion14 or 15? Many thanks.
I have syntax error on the code below. I can't find out the problem, please could anyone help?
Code:
Sheets("Combined Report - Modules").Select
Dim Last_Row As Long
Last_Row = Range("A" & Rows.Count).End(xlUp).Row
ActiveWorkbook.PivotCaches.Create(SourceType:=xlDatabase, SourceData:= _
"Combined_Data!R1C1:R" & Last_Row & "C13", Version:=xlPivotTableVersion14).CreatePivotTable_
TableDestination:="Combined Report - Modules"!R3C1", TableName:="PivotTable1", DefaultVersion_
:=xlPivotTableVersion14
Also, is there a difference of the PivotTableVersion14 or 15? Many thanks.
Last edited: