Hello,
Can anyone tell me why this code doesn't run:
ActiveWorkbook.PivotCaches.Create(SourceType:=xlDatabase, SourceData:= _
"Data_All_Items_Added!R3C1:R13174C8", Version:=xlPivotTableVersion10). _
CreatePivotTable TableDestination:="PVT_Items_Added!R3C1", TableName:="PivotTable1" _
, DefaultVersion:=xlPivotTableVersion10
I get the following error message:
Run-time error '5'
Invalid procedure call or argument.
I believe I have checked the names of the source and destination sheets. I am running windows 7 for the first time, and I am wondering if that is an issue, or if I need a reference. anyway, please help if you can. thank you, Pat.
Can anyone tell me why this code doesn't run:
ActiveWorkbook.PivotCaches.Create(SourceType:=xlDatabase, SourceData:= _
"Data_All_Items_Added!R3C1:R13174C8", Version:=xlPivotTableVersion10). _
CreatePivotTable TableDestination:="PVT_Items_Added!R3C1", TableName:="PivotTable1" _
, DefaultVersion:=xlPivotTableVersion10
I get the following error message:
Run-time error '5'
Invalid procedure call or argument.
I believe I have checked the names of the source and destination sheets. I am running windows 7 for the first time, and I am wondering if that is an issue, or if I need a reference. anyway, please help if you can. thank you, Pat.