Change Font Size

  • Thread starter Thread starter Steve Klenner
  • Start date Start date
S

Steve Klenner

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
 
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top