Home |
Search |
Today's Posts |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Dave,
Something along the lines of ActiveSheet.PivotTables("PivotTable1").PivotSelect "", xlDataAndLabel, True Selection.Find(What:="2006", LookAt:=xlWhole).EntireColumn.Copy The specific "What" to look for depends on your actual year values. HTH, Bernie MS Excel MVP "Dave" wrote in message ... Does anyone know how to select a column from a pivot table from a macro? I would like to select a column that corresponds to an attribute of the horizontal fields. For example, I would like to specify a year as 2006 then copy the year no matter which column the data for 2006 is located. |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Macro to Copy Pivot Table Data to Another Worksheet in Same Workbo | Excel Worksheet Functions | |||
copy a pivot table to another sheet in a macro | Excel Discussion (Misc queries) | |||
Excel 2002: Can I sort columns of the Pivot Table ? | Excel Discussion (Misc queries) | |||
Filter lines with Pivot table and non pivot table columns | Charts and Charting in Excel | |||
Filter lines with Pivot table and non Pivot table columns | Excel Discussion (Misc queries) |