#1   Report Post  
Old November 14th 04, 09:04 PM
Steve Klenner
 
Posts: n/a
Default Change Font Size

Is there a way to change the font size in a cell based on results of a given
cell?

Ex....change font size from 10pt to 8pt in cell a5 if cell a1 is 5.

Any help is appreciated

Steve





  #2   Report Post  
Old November 14th 04, 09:25 PM
Frank Kabel
 
Posts: n/a
Default

Hi
unfortunately does Excel's Conditional Format (menu Format -
Conditional Format') not allow such changes. So this would require VBA
(using an event procedure such as worksheet_change): See:
http://www.mvps.org/dmcritchie/excel/condfmt.htm

But if you like you may try out the following addin which also uses
event codes but is easier to use if you are not that experienced with
event macros:
http://www.xldynamic.com/source/xld.....Download.html


--
Regards
Frank Kabel
Frankfurt, Germany


Steve Klenner wrote:
Is there a way to change the font size in a cell based on results of
a given cell?

Ex....change font size from 10pt to 8pt in cell a5 if cell a1 is 5.

Any help is appreciated

Steve


  #3   Report Post  
Old November 14th 04, 09:34 PM
JE McGimpsey
 
Posts: n/a
Default

This would require an event macro. One way:

Put this in your worksheet code module:

Private Sub Worksheet_Calculate()
Range("A5").Font.Size = 8 - 2 * (Range("A1").Value 5)
End Sub

If you're not familiar with macros, see David McRitchie's "Getting
Started with Macros":

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

In article ,
"Steve Klenner" wrote:

Is there a way to change the font size in a cell based on results of a given
cell?

Ex....change font size from 10pt to 8pt in cell a5 if cell a1 is 5



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
change font in a forms control combo box JRTB Excel Discussion (Misc queries) 3 February 25th 09 09:34 PM
How to change the default font and size of "comments"? ClayMcQ Excel Discussion (Misc queries) 1 January 7th 05 11:43 PM
why cant i change font size when i use conditional formatting? cbwindycity Excel Discussion (Misc queries) 1 January 6th 05 10:45 PM
Changing font size in a list box [email protected] Excel Discussion (Misc queries) 1 December 21st 04 04:07 PM
Change datalabel font size for all chartobjects in a row Marie J-son Charts and Charting in Excel 2 December 5th 04 07:02 PM


All times are GMT +1. The time now is 12:29 AM.

Powered by vBulletin® Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
Copyright 2004-2019 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"

 

Copyright © 2017