View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
[email protected] f-x.p@laposte.net is offline
external usenet poster
 
Posts: 6
Default Name of the current pivottable from active cell

hi,

I need a macro to resize the column of the **current** pivot table.
All the code sample I have found suppose that you already have the
name of the pivot table to apply any modification.

Is there a way to find the current pivot table from the active cell ?



Here is the code I need to modify:

ActiveSheet.PivotTables("Tableau croisé dynamique1").PivotSelect
"", _
xlDataAndLabel
Selection.ColumnWidth = 9


Thank you for your help

François