Home |
Search |
Today's Posts |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Alberto Ast wrote:
Can I modify the pivot table range within a macro so once I update the table it will pick up all the way to end of data? What I do is to consider the table up to 10,000 rows but still I am limiting to what ever I put in such number. Try this with the PT worksheet selected. Assumes source data on Sheet1. Sub UpdatePT ActiveSheet.PivotTableWizard SourceType:=xlDatabase, SourceData:= _ Sheets("Sheet1").UsedRange 'or, if you are like me, specify the entire column and never worry 'about it again ' ActiveSheet.PivotTableWizard SourceType:=xlDatabase, SourceData:= _ Sheets("Sheet1").UsedRange.EntireColumn End Sub |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Pivot table with a variable range in the sourcedata field | Excel Discussion (Misc queries) | |||
variable last cell in pivot table macro | Excel Programming | |||
how do I hard code a variable range for a pivot table in vba? | Excel Programming | |||
Pivot Table variable range | Excel Programming | |||
Im so close. Need variable range for the pivot table | Excel Programming |