Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Autosize the column width

Is there a way to automatically re-size the width of a column to fit the
widest entry, like when you double-click on the column separators?

Thanks

Jim


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,885
Default Autosize the column width

Hi Jim
record a macro whild doing this manualy and use this kind of code

--
Regards
Frank Kabel
Frankfurt, Germany


Jim Coyne wrote:
Is there a way to automatically re-size the width of a column to fit
the widest entry, like when you double-click on the column

separators?

Thanks

Jim


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default Autosize the column width

ActiveCell.EntireColumn.EntireColumn.AutoFit


--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)

"Frank Kabel" wrote in message
...
Hi Jim
record a macro whild doing this manualy and use this kind of code

--
Regards
Frank Kabel
Frankfurt, Germany


Jim Coyne wrote:
Is there a way to automatically re-size the width of a column to fit
the widest entry, like when you double-click on the column

separators?

Thanks

Jim




  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,885
Default Autosize the column width

Hi Bob
not
ActiveCell.EntireColumn.AutoFit

:-)


--
Regards
Frank Kabel
Frankfurt, Germany


Bob Phillips wrote:
ActiveCell.EntireColumn.EntireColumn.AutoFit



"Frank Kabel" wrote in message
...
Hi Jim
record a macro whild doing this manualy and use this kind of code

--
Regards
Frank Kabel
Frankfurt, Germany


Jim Coyne wrote:
Is there a way to automatically re-size the width of a column to

fit
the widest entry, like when you double-click on the column
separators?

Thanks

Jim


  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default Autosize the column width

Not my day, but it does work(sic!).

You not what they say, so good I did it twice.

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)

"Frank Kabel" wrote in message
...
Hi Bob
not
ActiveCell.EntireColumn.AutoFit

:-)


--
Regards
Frank Kabel
Frankfurt, Germany


Bob Phillips wrote:
ActiveCell.EntireColumn.EntireColumn.AutoFit



"Frank Kabel" wrote in message
...
Hi Jim
record a macro whild doing this manualy and use this kind of code

--
Regards
Frank Kabel
Frankfurt, Germany


Jim Coyne wrote:
Is there a way to automatically re-size the width of a column to

fit
the widest entry, like when you double-click on the column
separators?

Thanks

Jim






  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Autosize the column width

Yes, that worked. I'm sure I had tried it before, but I think I was getting
the object syntax messed up, and VB was not helping me out any with .

Thanks

Jim

"Bob Phillips" wrote in message
...
Not my day, but it does work(sic!).

You not what they say, so good I did it twice.

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)

"Frank Kabel" wrote in message
...
Hi Bob
not
ActiveCell.EntireColumn.AutoFit

:-)


--
Regards
Frank Kabel
Frankfurt, Germany


Bob Phillips wrote:
ActiveCell.EntireColumn.EntireColumn.AutoFit



"Frank Kabel" wrote in message
...
Hi Jim
record a macro whild doing this manualy and use this kind of code

--
Regards
Frank Kabel
Frankfurt, Germany


Jim Coyne wrote:
Is there a way to automatically re-size the width of a column to

fit
the widest entry, like when you double-click on the column
separators?

Thanks

Jim






Reply
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
Change Cell Width WITHOUT changing Column width dww701 Excel Discussion (Misc queries) 1 January 12th 09 10:52 PM
how do I create multiple column width in the same column in excel Vish Excel Discussion (Misc queries) 9 November 3rd 06 11:49 PM
How to make cell width different than the column width it lies in John Excel Discussion (Misc queries) 2 September 11th 06 10:41 PM
Change the width of a single column in a column chart Dave Charts and Charting in Excel 2 December 13th 04 07:25 PM


All times are GMT +1. The time now is 07:07 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"