Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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 |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Try this utility:
http://www.contextures.com/xlPivotPlay01.html Regards, Ryan-- -- RyGuy " wrote: 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 |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi,
Thank you Ryan, but I have finally found the solution (at least, **a** solution): ActiveCell.CurrentRegion.ColumnWidth = 9 Simple, clear, efficient :-) Thanks for your answer, I will have a look at your utility if I am in need of further features. Regards François |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
set the background color of the current cell(active cell) | New Users to Excel | |||
How to add todays date (static) to the current active cell using m | Excel Discussion (Misc queries) | |||
Populate current active cell - Help Please!! | Excel Worksheet Functions | |||
Inesert value of column B of the current row into active cell | Excel Programming | |||
Identify current active cell | Excel Worksheet Functions |