#1   Report Post  
Posted to microsoft.public.excel.newusers
Deb Deb is offline
external usenet poster
 
Posts: 102
Default Excel 2003

I have formatted my cells to auto-fit and wrap. There are no merged cells.
There are formulas in the cells that return text depending on the if
statement.

When the if statement returns "true" and picks up the text, it doesn't wrap
in the cell. It ends up being a long string.
--
Deb
  #2   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 11,058
Default Excel 2003

I don't see what you are seeing. On my computer, the wrap is there but the
autofit is NOT automatic.
--
Gary''s Student - gsnu200804


"Deb" wrote:

I have formatted my cells to auto-fit and wrap. There are no merged cells.
There are formulas in the cells that return text depending on the if
statement.

When the if statement returns "true" and picks up the text, it doesn't wrap
in the cell. It ends up being a long string.
--
Deb

  #3   Report Post  
Posted to microsoft.public.excel.newusers
Deb Deb is offline
external usenet poster
 
Posts: 102
Default Excel 2003

My worksheet has the rows formatted to auto-fit; i didn't specify a certain
height. I then formatted the relevant cells with "wrap text" checked on the
Alignment tab.

In these cells i have an "if" formula to pick up relevant text. When this
formula returns text, the text doesn't wrap unless i manually uncheck wrap
text and then go back in and check it again. I have a lot of cells that need
to do this and to manually do this with each cell is very time consuming. Is
there a way to get this to work that is not manual.
--
Deb


"Gary''s Student" wrote:

I don't see what you are seeing. On my computer, the wrap is there but the
autofit is NOT automatic.
--
Gary''s Student - gsnu200804


"Deb" wrote:

I have formatted my cells to auto-fit and wrap. There are no merged cells.
There are formulas in the cells that return text depending on the if
statement.

When the if statement returns "true" and picks up the text, it doesn't wrap
in the cell. It ends up being a long string.
--
Deb

  #4   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 11,058
Default Excel 2003

Here is an example for a single cell, A2.
The cell contains a formula that return text of various lengths and we want
Excel to re-adjust the row height whenever the formula is calculated.

In the worksheet code area, insert the following event macro:

Private Sub Worksheet_Calculate()
Set r = Range("A2")
Application.EnableEvents = False
r.WrapText = False
DoEvents
r.WrapText = True
DoEvents
Application.EnableEvents = True
End Sub

This is only a single cell demo. For your case it would need to be expanded
for all the cells you want to adjust.

Because it is worksheet code, it is very easy to install and automatic to use:

1. right-click the tab name near the bottom of the Excel window
2. select View Code - this brings up a VBE window
3. paste the stuff in and close the VBE window

If you have any concerns, first try it on a trial worksheet.

If you save the workbook, the macro will be saved with it.


To remove the macro:

1. bring up the VBE windows as above
2. clear the code out
3. close the VBE window

To learn more about macros in general, see:

http://www.mvps.org/dmcritchie/excel/getstarted.htm

To learn more about Event Macros (worksheet code), see:

http://www.mvps.org/dmcritchie/excel/event.htm


--
Gary''s Student - gsnu200804


"Deb" wrote:

My worksheet has the rows formatted to auto-fit; i didn't specify a certain
height. I then formatted the relevant cells with "wrap text" checked on the
Alignment tab.

In these cells i have an "if" formula to pick up relevant text. When this
formula returns text, the text doesn't wrap unless i manually uncheck wrap
text and then go back in and check it again. I have a lot of cells that need
to do this and to manually do this with each cell is very time consuming. Is
there a way to get this to work that is not manual.
--
Deb


"Gary''s Student" wrote:

I don't see what you are seeing. On my computer, the wrap is there but the
autofit is NOT automatic.
--
Gary''s Student - gsnu200804


"Deb" wrote:

I have formatted my cells to auto-fit and wrap. There are no merged cells.
There are formulas in the cells that return text depending on the if
statement.

When the if statement returns "true" and picks up the text, it doesn't wrap
in the cell. It ends up being a long string.
--
Deb

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
unable to paste Excel 2003 chart into Outlook 2003 Fat Frog Charts and Charting in Excel 0 August 7th 07 05:26 PM
opening excel files from access 2003, win xp, office 2003 Nugimac Excel Discussion (Misc queries) 2 April 26th 07 12:32 PM
import Excel 2003 file into Outlook 2003 - NO NAMED RANGES?? lewisma9 Excel Discussion (Misc queries) 0 February 27th 07 12:23 AM
Copying Excel 2003 Selection into Outlook 2003 HTML E-Mail Message [email protected] Excel Discussion (Misc queries) 0 July 10th 06 03:07 PM
Excel 2003 Database Driver Visual FoxPro 7 on Server 2003. Cindy Winegarden Excel Discussion (Misc queries) 0 November 28th 04 12:07 AM


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