LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,979
Default Resizing a pivot column based on Field Name

If you leave AutoFormat on, the column will adjust automatically, to fit
the widest entry.

cmungall wrote:
I need to find code that will resize a column based on the pivot row's field
name.

Say I have a pivot field named "Long Name" and each time I use it for a
pivot it autofits to an enormous length. I need a macro to check each
pivotrows' name and resize it to a specific length if it matches "Long Name".
Make sense?

I know that I could just set the size to what I want and then turn off
autoformat, but this won't do because the pivot can be changed and sliced
many ways. I need a dynamic solution.

Thanks in advance to anyone who can help me out with this!!



--
Debra Dalgleish
Contextures
http://www.contextures.com/tiptech.html

 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Pivot Table Field based on two data area fields John Sweeney Excel Worksheet Functions 3 February 23rd 09 08:14 PM
Calculated Field in Pivot Table Based on Two Counted Fields cmlits Excel Discussion (Misc queries) 1 March 30th 06 05:44 AM
Column Resizing and Pivot Tables Schmeebs Excel Discussion (Misc queries) 1 May 11th 05 02:11 AM
Calculating a field based on what is in another column acs68 Excel Discussion (Misc queries) 3 March 28th 05 06:01 PM
pivot field size (column field) Kanan Excel Programming 0 April 9th 04 11:41 PM


All times are GMT +1. The time now is 12:29 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"