Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Can't change font on conditional formatting

Hi,

I'm playing with the Conditional Formatting of a cell. I need to change the
font according to the value of the cell. The problem is the font selector is
disabled on the conditional format dialog. Is not possible to change the
font when conditional formatting the cell or may be I'm missing something?

Thanks in advance

--
Faustino Dina
--------------------------------------------------------
If my email address starts with two 'f'
drop the first 'f' when mailing me.


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 24
Default Can't change font on conditional formatting

No. You'd need to run a macro for that.
_______________________
Robert Rosenberg
R-COR Consulting Services
Microsoft MVP - Excel
http://www.r-cor.com


"faustino Dina" wrote in message
...
Hi,

I'm playing with the Conditional Formatting of a cell. I need to change

the
font according to the value of the cell. The problem is the font selector

is
disabled on the conditional format dialog. Is not possible to change the
font when conditional formatting the cell or may be I'm missing something?

Thanks in advance

--
Faustino Dina
--------------------------------------------------------
If my email address starts with two 'f'
drop the first 'f' when mailing me.




  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,885
Default Can't change font on conditional formatting

Hi
Conditional format does not support changing the font type. If you need
this youll have to use VBA (processing the worksheet_change event).
e.g.the following code checks column A for a specific value (put this
in your worksheet module):

Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Cells.Count 1 Then Exit Sub
If Intersect(Target, Me.Range("A:A")) Is Nothing Then Exit Sub
On Error GoTo CleanUp:
With Target
If .Value = 1 Then
.Font.Name = "Arabic Transparent" 'change this
font name
End If
End With
CleanUp:
Application.EnableEvents = True
End Sub




--
Regards
Frank Kabel
Frankfurt, Germany

faustino Dina wrote:
Hi,

I'm playing with the Conditional Formatting of a cell. I need to
change the font according to the value of the cell. The problem is
the font selector is disabled on the conditional format dialog. Is
not possible to change the font when conditional formatting the cell
or may be I'm missing something?

Thanks in advance


  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Can't change font on conditional formatting

That is correct. My take is that Conditional formatting does not support
changing anything that might change the overall format of the worksheet.
Changing the font could result in data being cut off unless the column is
made wider because the characters in the font might require more space (as
an example). Thus size is not an option either.

--
Regards,
Tom Ogilvy

"faustino Dina" wrote in message
...
Hi,

I'm playing with the Conditional Formatting of a cell. I need to change

the
font according to the value of the cell. The problem is the font selector

is
disabled on the conditional format dialog. Is not possible to change the
font when conditional formatting the cell or may be I'm missing something?

Thanks in advance

--
Faustino Dina
--------------------------------------------------------
If my email address starts with two 'f'
drop the first 'f' when mailing me.




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
Conditional Formatting Font Change Hugh Excel Discussion (Misc queries) 1 November 9th 09 01:03 PM
changing font using conditional formatting Milind Keer[_2_] Excel Discussion (Misc queries) 1 November 6th 09 02:27 PM
Change Font Color Based on Conditional Formatting tj Excel Worksheet Functions 8 October 11th 08 02:08 AM
Conditional formatting font Harley Excel Discussion (Misc queries) 2 June 28th 05 06: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


All times are GMT +1. The time now is 06:35 AM.

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"