Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Hi. I want to be able to test a cell to see if the contents are bold. Is
there a way to do this in Excel, or must I write a VB function? Thanks. |
#2
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
The VB part is easy:
Function bold_test(r As Range) As String If r.Font.FontStyle = "Bold" Then bold_test = "Bold" Else bold_test = "not Bold" End If End Function The hard part is that the function does not automatically update if you change the target's boldness. If you change the target from bold to not bold or visa versa, you must touch CNTRL-ALT-F9 to re-calculate the function. -- Gary''s Student "Mike A." wrote: Hi. I want to be able to test a cell to see if the contents are bold. Is there a way to do this in Excel, or must I write a VB function? Thanks. |
#3
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Hi Mike,
You would need to write a User Defined Function ISBOLD User Defined Function http://www.mvps.org/dmcritchie/excel/font.htm#ISBOLD though because of Firefox it will be #isbold in the future. wasn't hard to find my page using Google --- HTH, David McRitchie, Microsoft MVP - Excel [site changed Nov. 2001] My Excel Pages: http://www.mvps.org/dmcritchie/excel/excel.htm Search Page: http://www.mvps.org/dmcritchie/excel/search.htm "Mike A." <Mike wrote in message ... Hi. I want to be able to test a cell to see if the contents are bold. Is there a way to do this in Excel, or must I write a VB function? Thanks. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Cell shading issue on EXCEL 2003 | Excel Discussion (Misc queries) | |||
Cell shading issue on EXCEL 2003 | Excel Discussion (Misc queries) | |||
TRYING TO SET UP EXCEL SPREADSHEET ON MY COMPUTER | New Users to Excel | |||
Can I fill colour in a excel cell from a return from an "IF" test. | Excel Worksheet Functions | |||
GET.CELL | Excel Worksheet Functions |