pedie
Well-known Member
- Joined
- Apr 28, 2010
- Messages
- 3,875
When i record a macro it shows...
"Sheet3!R1C1:R49C7"
I want it in like Sheets("Sheet3").Range("A1:E" & lr) etc.
I want to pick range till last row. Please help me out here...
This must be simple but stucked...
Thanks for helping.
I tried like this...
"path\[budget pivot table.xls]Sheet3!" & Range("A1:G49") & , Version:=xlPivotTableVersion10)
but still errors...
"Sheet3!R1C1:R49C7"
I want it in like Sheets("Sheet3").Range("A1:E" & lr) etc.
Code:
[FONT=Courier New] ActiveSheet.PivotTables("PivotTable1").ChangePivotCache ActiveWorkbook. _[/FONT]
[FONT=Courier New] PivotCaches.Create(SourceType:=xlDatabase, SourceData:= _[/FONT]
[FONT=Courier New] "path\[budget pivot table.xls]Sheet3!R1C1:R49C7" _[/FONT]
[FONT=Courier New] , Version:=xlPivotTableVersion10)[/FONT]
I want to pick range till last row. Please help me out here...
This must be simple but stucked...
Thanks for helping.
I tried like this...
"path\[budget pivot table.xls]Sheet3!" & Range("A1:G49") & , Version:=xlPivotTableVersion10)
but still errors...
Last edited: