Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
LittleNic71
 
Posts: n/a
Default Condontionally format bold cells

I have a spreadsheet with the bold text in some cells. Regardless of the
content of these cells i would like to colour all cells with bold formatting
red.

Is this possible? If so, could you tell me how.

Thank you in advance for your assistance.

LittleNic71

If relevant, i am using Excel 2003.


  #2   Report Post  
Posted to microsoft.public.excel.misc
Dave Peterson
 
Posts: n/a
Default Condontionally format bold cells

You could create your own user defined function (UDF) that looks at the format
of the cell:

Option Explicit
Function isBold(rng As Range) As Variant

application.volatile

If rng(1).Font.Bold Then
isBold = True
ElseIf IsNull(rng(1).Font.Bold) Then
isBold = "Mixed"
Else
isBold = False
End If

End Function

Then you can use =isbold() in your formula in your conditional format formula

But be aware that changing the boldness of a cell is not something that causes
excel to recalculate. Hit alt-ctrl-F9 to force it recalc (before you trust the
results).

If you're new to macros, you may want to read David McRitchie's intro at:
http://www.mvps.org/dmcritchie/excel/getstarted.htm

I'm not sure what should happen if you have some characters bold and others
not. The UDF returns Mixed and that's treated as false in the conditional
formatting. Change it to True or False to match what you want.

LittleNic71 wrote:

I have a spreadsheet with the bold text in some cells. Regardless of the
content of these cells i would like to colour all cells with bold formatting
red.

Is this possible? If so, could you tell me how.

Thank you in advance for your assistance.

LittleNic71

If relevant, i am using Excel 2003.


--

Dave Peterson
  #3   Report Post  
Posted to microsoft.public.excel.misc
Kevin B
 
Posts: n/a
Default Condontionally format bold cells

You can use Conditional Formatting to do that.

Select the cells you wish to conditionally format and do the following:

Click FORMAT in the menu and select CONDITIONAL FORMATTING

In the following dialog box, state the condition that determines whether or
not the cell if formatted in red/bold and then click the format button.
Select BOLD as the font style and directly below the style list, select the
color you wish to use. Click OK 2 times to return to the worksheet.

--
Kevin Backmann


"LittleNic71" wrote:

I have a spreadsheet with the bold text in some cells. Regardless of the
content of these cells i would like to colour all cells with bold formatting
red.

Is this possible? If so, could you tell me how.

Thank you in advance for your assistance.

LittleNic71

If relevant, i am using Excel 2003.


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
Cells with time format and calculating the diffrence MikeR-Oz New Users to Excel 11 January 3rd 06 10:11 AM
format cells having text steve Excel Discussion (Misc queries) 2 July 15th 05 01:24 AM
Make Alignment options under format cells available as shortcut dforrest Excel Discussion (Misc queries) 1 July 14th 05 10:58 PM
format cells dialog box does not come up GMed Excel Discussion (Misc queries) 1 April 14th 05 05:00 PM
format cells Alfred Excel Worksheet Functions 2 April 1st 05 03:43 PM


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