Home |
Search |
Today's Posts |
#4
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
The long and the short of it is that you can only sort of do this. It
requires a user defined function that only sort of does what you asked. The problem is that changing a cell format does not re-caclulate the sheet. You want is a formula to evaluate to True or False, but it won't recalc automatically. Here is some code that you can put in the same place as you would find a recorded macro. Public Function IsBold(ByVal TargetCell As Range) As Boolean Application.Volatile IsBold = TargetCell.Font.Bold End Function In the cell that you want to evaluate to true or false type in the formula =IsBold(A1) This will return true or false depending on the font in A1. The problem arises if the font in A1 is changed. The formula will not re-evaluate until a calculation is run (press F9 to see what I mean)... -- HTH... Jim Thomlinson "Gary" wrote: I want to be able to determine whether the text in any given cell is bold, and display that information as a true/false value in an adjoining cell. Can you tell me how to accomplilsh this? Thanks. |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Urgent date/scheduling calc needed | Excel Worksheet Functions | |||
Excel: with an if condition display a row of cell if true | Excel Discussion (Misc queries) | |||
Cell shading in excel doesn't show. | New Users to Excel | |||
UDF and Calculation tree | Links and Linking in Excel | |||
how do I show a picture in excel based on cell data | Excel Discussion (Misc queries) |