Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 309
Default Lots of text in one cell

After I click on File-New, Excel will begin with a default size empty
sheet. If I type a long, say 100+ character, string into cell A1 then
that text will visibly spill over in the adjacent cells.

Is there a way to tell Excel to resize or redimension cell A1 so that
my string completely fills the cell in a nice looking manner??? I
basically want any arbitrary string that I type to completely visible
and contained within cell A1 in a nice looking way.

thank you


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 208
Default Lots of text in one cell

Hi
Tricky to do in a consistent, automated and attractive way. Excel
doesn't do attractive on the whole. You would have to get into
character widths I reckon - more trouble than it is worth?
I would just set the column width and turn on text wrapping for that
column (Cell format, alignment, wrap text).
regards
Paul

On Feb 26, 8:42*am, "Robert Crandal" wrote:
After I click on File-New, Excel will begin with a default size empty
sheet. *If I type a long, say 100+ character, string into cell A1 then
that text will visibly spill over in the adjacent cells.

Is there a way to tell Excel to resize or redimension cell A1 so that
my string completely fills the cell in a nice looking manner??? *I
basically want any arbitrary string that I type to completely visible
and contained within cell A1 in a nice looking way.

thank you


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,501
Default Lots of text in one cell

Hi,

You could do this. Alt+F11 to open VB editor and double click the shet to
which this applies and paste the code below in.

This does the entire sheet but it can be limited to only certain columns

Private Sub Worksheet_Change(ByVal Target As Range)
Target.EntireColumn.AutoFit
End Sub
--
Mike

When competing hypotheses are otherwise equal, adopt the hypothesis that
introduces the fewest assumptions while still sufficiently answering the
question.


"Robert Crandal" wrote:

After I click on File-New, Excel will begin with a default size empty
sheet. If I type a long, say 100+ character, string into cell A1 then
that text will visibly spill over in the adjacent cells.

Is there a way to tell Excel to resize or redimension cell A1 so that
my string completely fills the cell in a nice looking manner??? I
basically want any arbitrary string that I type to completely visible
and contained within cell A1 in a nice looking way.

thank you


.

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 73
Default Lots of text in one cell

Try using the Autofit.
Columns("A:A").EntireColumn.AutoFit

Good luck
Fred

"Robert Crandal" wrote in message
...
After I click on File-New, Excel will begin with a default size empty
sheet. If I type a long, say 100+ character, string into cell A1 then
that text will visibly spill over in the adjacent cells.

Is there a way to tell Excel to resize or redimension cell A1 so that
my string completely fills the cell in a nice looking manner??? I
basically want any arbitrary string that I type to completely visible
and contained within cell A1 in a nice looking way.

thank you




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
I'm trying to fit lots of text in a cell RP2chil Excel Discussion (Misc queries) 8 September 15th 06 12:05 AM
How to print cells with lots of text? Sings4Fun Excel Discussion (Misc queries) 2 February 8th 06 04:49 AM
Cells containing lots of text will not wrap? Jon Parker Excel Discussion (Misc queries) 1 April 19th 05 01:25 PM
Lots of Frustration - Lots of Arrays, Dynamic Ranges Don't Work, Help With Options Karl Burrows Excel Programming 4 April 17th 04 12:48 PM
lots of text in text box problem jasonsweeney[_29_] Excel Programming 1 January 30th 04 01:40 PM


All times are GMT +1. The time now is 07:34 PM.

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"