Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default Font size test

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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,119
Default Font size test

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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,391
Default Font size test

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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default Font size test

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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default Font size test

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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,391
Default Font size test

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
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
Changing Font color based on font type or size John Excel Discussion (Misc queries) 2 February 7th 08 12:50 AM
Test in Validation Box Very Small Font Size... cdavidson Excel Discussion (Misc queries) 1 May 18th 07 08:51 PM
Change all text one font size up with various font sizes used. omchrystal New Users to Excel 2 March 6th 07 09:01 PM
My tabs' font size is smaller - how do I restore default size? katykins53 Excel Discussion (Misc queries) 1 January 11th 06 12:07 AM
Dropdown list for font size, font type and number formats ExcelMonkey[_190_] Excel Programming 1 March 9th 05 03:50 PM


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