Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9
Default Autosizing a Cell

I have three cells that contain names and are populated with a vlookup
formula. Some of the names are larger than the cells current size. Is
there a way, in either Excel or VBA, to autosize the cell this way I
can add that code to my macro before it prints to ensure the whole name
is being shown for each person.

Thanks,
Scott

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,452
Default Autosizing a Cell

How about:

Range("A1:A3").Columns.AutoFit

RBS

wrote in message
ups.com...
I have three cells that contain names and are populated with a vlookup
formula. Some of the names are larger than the cells current size. Is
there a way, in either Excel or VBA, to autosize the cell this way I
can add that code to my macro before it prints to ensure the whole name
is being shown for each person.

Thanks,
Scott


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
Autosizing Text Box (and more) Risky Dave Excel Discussion (Misc queries) 0 January 31st 07 01:45 PM
Autosizing labels in Excel 97 Striker475 New Users to Excel 5 November 11th 05 12:02 AM
Autosizing labels Excel 97 Striker475 Excel Discussion (Misc queries) 2 November 10th 05 02:50 AM
Adding Comment and AutoSizing Troy[_3_] Excel Programming 0 May 27th 04 01:06 AM
AutoSizing TextBox Price Excel Programming 1 November 12th 03 04:57 PM


All times are GMT +1. The time now is 08:26 AM.

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

About Us

"It's about Microsoft Excel"