#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10
Default Bold format.

Is there any way to find through a formula whether the contents in the cell
is fomatted as bold or not?
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10,593
Default Bold format.

with a UDF

Function IsBold(rng As Range) As Boolean
If rng.Cells.Count 1 Then Exit Function
Application.Volatile
IsBold = rng.Font.Bold
End Function




--
---
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)



"Balaji" wrote in message
...
Is there any way to find through a formula whether the contents in the
cell
is fomatted as bold or not?



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4,624
Default Bold format.

Not via built-in formula.

You could use a UDF like this:

Public Function IsBold(ByRef rng As Excel.Range) As Boolean
Dim rArea As Range
Dim rCell As Range
Dim bResult As Boolean

Application.Volatile
bResult = True
For Each rArea In rng
For Each rCell In rArea
bResult = bResult And rCell.Font.Bold
Next rCell
Next rArea
IsBold = bResult
End Function

Note that changing format doesn't trigger a calculation event, so you'd
need to manually trigger a recalc to make sure that the formula returned
the right value.

In article ,
Balaji wrote:

Is there any way to find through a formula whether the contents in the cell
is fomatted as bold or not?

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 Sum based on Bold Format Ron Excel Discussion (Misc queries) 3 February 8th 07 06:28 PM
Bold certain items in custom number format Sloth Excel Discussion (Misc queries) 0 August 25th 06 05:09 PM
Condontionally format bold cells LittleNic71 Excel Discussion (Misc queries) 2 May 10th 06 02:26 PM
if/then changing text format to Bold cheshire191 Excel Worksheet Functions 1 September 1st 05 02:41 PM
How can I sum only amounts that are in BOLD format within a column Wanda New Users to Excel 1 March 11th 05 08:32 PM


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