Hi,

I can't figure out the bug in this script, any ideas? This is the part it highlighted, I'll post more if necessary

ActiveWorkbook.PivotCaches.Create(SourceType:=xlDatabase, SourceData:= _
"Log!R1C3:R17C19", Version:=xlPivotTableVersion14).CreatePivotTable _
TableDestination:="Feature Analysis!R1C1", TableName:="PivotTable7", _
DefaultVersion:=xlPivotTableVersion14

I'm just trying to create pivot tables following data that's in the same workbook.

Thank you!