Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Is there a logical test to check if, for example, a cell contents is in bold?
|
#2
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
As far as I know there is nothing built in, I built this function for someone
that counts cells that are bold, you can use it or modify, I can help you modify it to your purpose if you need to. It goes in a module, preferably in your personal.xls. Function CountBold(rRange As Range) As Long Dim lCount As Long, myCell As Range lCount = 0 For Each myCell In rRange If myCell.Font.bold = True Then lCount = lCount + 1 End If Next myCell CountBold = lCount End Function -- -John Please rate when your question is answered to help us and others know what is helpful. "Mac" wrote: Is there a logical test to check if, for example, a cell contents is in bold? |
#3
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Note that changing the formatting within rRange doesn't cause this to
recalculate. You could add Application.Volatile after the Dim statement, but you'd still need to manually calculate the sheet to ensure that the result is correct. In article , John Bundy (remove) wrote: As far as I know there is nothing built in, I built this function for someone that counts cells that are bold, you can use it or modify, I can help you modify it to your purpose if you need to. It goes in a module, preferably in your personal.xls. Function CountBold(rRange As Range) As Long Dim lCount As Long, myCell As Range lCount = 0 For Each myCell In rRange If myCell.Font.bold = True Then lCount = lCount + 1 End If Next myCell CountBold = lCount End Function |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
IF functionality, Logical Test = Nonbalnk Cell | Excel Worksheet Functions | |||
logical test | Excel Worksheet Functions | |||
Logical Test comparison using cell color | Excel Discussion (Misc queries) | |||
logical test for each and every cell in range | Excel Discussion (Misc queries) | |||
=IF logical test to search only part of a cell | Excel Worksheet Functions |