Hi All,
I am trying to use lastrow method to determine the lastrow used and then build a pivottable.
However, got into syntax errors. Any help is appreciated.
What I am trying to do is for Row 6 and 7.Please Login or Register to view this content.
Row 6
"Sheet1!R2C2:R65000C34", Version:=xlPivotTableVersion12).CreatePivotTable _
Change to
"Sheet1!R2C2:"R"&Lastrow & C34", Version:=xlPivotTableVersion12).CreatePivotTable _
Row 7
TableDestination:="Sheet1!R30C3", TableName:="PivotTable2", _
Change to
TableDestination:="Sheet1!"R"&AddRow &C3", TableName:="PivotTable2", _
Regards,
Nironto
Bookmarks