Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi All,
I have a pivot table, where one of the data source column headers changes. When this happens, and I go to Refresh my pivot table, that particular column is removed. After doing some research, it sounds like I need to change the SourceName on that field to match the source data column header. I tried the following, but got the error 'Unable to change the Source Name property of the PivotField Class'. Any ideas? Sub test() Set i = Worksheets("Consolidated").Range("M1") 'the data source header cell that changes Worksheets("Summary").PivotTables(1) _ .PivotFields("Category").SourceName = i End Sub |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Change of table name in access where Excel obtains pivot table inf | Excel Programming | |||
can i change pivot table to change data | Excel Discussion (Misc queries) | |||
Pivot table change selection | Excel Programming | |||
Change Pivot Table Range | Excel Programming | |||
Pivot Table/ % Change | Excel Programming |