VBAProIWish
Well-known Member
- Joined
- Jul 6, 2009
- Messages
- 1,027
- Office Version
- 365
- Platform
- Windows
Hello All,
I have this code below that selects the CurrentRegion in a pivot table/cache.
How can I add one row to the current region in the below code?
Thanks much
I have this code below that selects the CurrentRegion in a pivot table/cache.
How can I add one row to the current region in the below code?
Rich (BB code):
ActiveSheet.ChartObjects("Chart 1").Activate
ActiveSheet.PivotTables("PivotTable2").ChangePivotCache ActiveWorkbook. PivotCaches.Create(SourceType:=xlDatabase, _
SourceData:=Worksheets("SDB").Range("A1").CurrentRegion) '<<< change to "CurrentRegion" PLUS ONE ROW
Thanks much