I am trying to run a macro for a pivot table in XL 2007 and keep getting errors (now it's syntax error: expected expression- at Tabledestination). I notice in video episode 1211 that Mr. Excel has version 14 in his code (mine says version12).
Is Mr. Excel getting Version14 because he uses XL 2010, and could this be why my code does not work when I copy the code used in this video?
error is occurring in the bold and underlined section of my code below.
ActiveWorkbook.PivotCaches.Create(SourceType:=xlDatabase, SourceData:= _
DataSheet & "!R1C2:R" & FinalRow & "C10", Version:=xlPivotTableVersion12).CreatePivotTable_
TableDestination:=NewSheet & "!R1C1", TableName:="PivotTable3", DefaultVersion:=xlPivotTableVersion12
Thank you
Mindy
Is Mr. Excel getting Version14 because he uses XL 2010, and could this be why my code does not work when I copy the code used in this video?
error is occurring in the bold and underlined section of my code below.
ActiveWorkbook.PivotCaches.Create(SourceType:=xlDatabase, SourceData:= _
DataSheet & "!R1C2:R" & FinalRow & "C10", Version:=xlPivotTableVersion12).CreatePivotTable_
TableDestination:=NewSheet & "!R1C1", TableName:="PivotTable3", DefaultVersion:=xlPivotTableVersion12
Thank you
Mindy