I've Tried many times to get the systax correct when tring to modify R1C1 selections.
I only need to change the row count in a pivot table for adding new data. The counting is no problem getting it in my code is.
Below is the code I need to sub a variable for R11 in the example. I just cannot get the syntax right to modify it.
Range("A4").Select
ActiveSheet.PivotTables("PivotTable1").PivotCache.Refresh
ActiveSheet.PivotTableWizard SourceType:=xlDatabase, SourceData:= _
"Combined!R1C1:R11C9"
ActiveWorkbook.ShowPivotTableFieldList = True
ActiveWorkbook.ShowPivotTableFieldList = False
I only need to change the row count in a pivot table for adding new data. The counting is no problem getting it in my code is.
Below is the code I need to sub a variable for R11 in the example. I just cannot get the syntax right to modify it.
Range("A4").Select
ActiveSheet.PivotTables("PivotTable1").PivotCache.Refresh
ActiveSheet.PivotTableWizard SourceType:=xlDatabase, SourceData:= _
"Combined!R1C1:R11C9"
ActiveWorkbook.ShowPivotTableFieldList = True
ActiveWorkbook.ShowPivotTableFieldList = False