Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi everyone,
If you set a cell to ShrinkToFit and it shrinks the text, how would you test what size font ShrinkToFit set it to? If you just test the font size it returns the default value you already set it to and not the value ShrinkToFit made it. Thanks for any help. |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Your shrink to fit should give you a percentage. So if your original font
size was 10 and your shrink to fit was 50% then your effective font size should be 5. I would say that give or take some rounding you should just be able to multiply your font size by your shrink to fit percentage. -- HTH... Jim Thomlinson "visdev1" wrote: Hi everyone, If you set a cell to ShrinkToFit and it shrinks the text, how would you test what size font ShrinkToFit set it to? If you just test the font size it returns the default value you already set it to and not the value ShrinkToFit made it. Thanks for any help. |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
visdev1,
As far as I know there is no way to tell Why do you need to know this ? NickHK "visdev1" wrote in message ... Hi everyone, If you set a cell to ShrinkToFit and it shrinks the text, how would you test what size font ShrinkToFit set it to? If you just test the font size it returns the default value you already set it to and not the value ShrinkToFit made it. Thanks for any help. |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
NickHK,
I am auto inserting text into a merged range. If the text gets below a certain size that isnt readable im just going to delete the text. Resizing the cell to fit the text is something i cant do because other cells need the row and column to remain that size. Thanks "NickHK" wrote: visdev1, As far as I know there is no way to tell Why do you need to know this ? NickHK "visdev1" wrote in message ... Hi everyone, If you set a cell to ShrinkToFit and it shrinks the text, how would you test what size font ShrinkToFit set it to? If you just test the font size it returns the default value you already set it to and not the value ShrinkToFit made it. Thanks for any help. |
#5
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
How do you get the percentage?
With Selection x = .ShrinkToFit 'only returns True end with and x = .Size 'only returns 10 Thanks "Jim Thomlinson" wrote: Your shrink to fit should give you a percentage. So if your original font size was 10 and your shrink to fit was 50% then your effective font size should be 5. I would say that give or take some rounding you should just be able to multiply your font size by your shrink to fit percentage. -- HTH... Jim Thomlinson "visdev1" wrote: Hi everyone, If you set a cell to ShrinkToFit and it shrinks the text, how would you test what size font ShrinkToFit set it to? If you just test the font size it returns the default value you already set it to and not the value ShrinkToFit made it. Thanks for any help. |
#6
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
visdev1,
Like I say, that is not a property that Excel exposes IIRC. An alternative would be to limit the length of text that can be insert using Data Validation. You would have to determine a suitable number character that still remains readable. NickHK "visdev1" wrote in message ... NickHK, I am auto inserting text into a merged range. If the text gets below a certain size that isnt readable im just going to delete the text. Resizing the cell to fit the text is something i cant do because other cells need the row and column to remain that size. Thanks "NickHK" wrote: visdev1, As far as I know there is no way to tell Why do you need to know this ? NickHK "visdev1" wrote in message ... Hi everyone, If you set a cell to ShrinkToFit and it shrinks the text, how would you test what size font ShrinkToFit set it to? If you just test the font size it returns the default value you already set it to and not the value ShrinkToFit made it. Thanks for any help. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Changing Font color based on font type or size | Excel Discussion (Misc queries) | |||
Test in Validation Box Very Small Font Size... | Excel Discussion (Misc queries) | |||
Change all text one font size up with various font sizes used. | New Users to Excel | |||
My tabs' font size is smaller - how do I restore default size? | Excel Discussion (Misc queries) | |||
Dropdown list for font size, font type and number formats | Excel Programming |