Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi,
I'm automatically inserting text in Excel cells. The cells height and width is fixed and shouldn't be changed. I'd like to automatically reduce font size, if a text doesn't fit. I would use conditional formatting, but I guess that there's no Excel function available that would help here. And for some reason the font size can not be changed by conditional formatting on my system. So I'd like to use VBA, but how? The easiest way would be to determine, how much space a text needs and compare it with the cell width. But how do I get the first parameter? Another idea would be to set a cell to automatic word wrap. All I need then is to get the current number of lines. If it's greater then one, I would reduce the font size. But how to I get the number of lines from an automaticalley wrapped text? TIA, Christian |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Test cell for list data and modify cell contents | Excel Programming | |||
VBA Test on Array - Find a value | Excel Programming | |||
Calculate mean of test scores from rows of test answers | Excel Discussion (Misc queries) | |||
How can i test a cell for bold style in a cell (Excel 2003)? | Excel Worksheet Functions | |||
How do you test to break out of a find loop? | Excel Programming |