knittelmail
New Member
- Joined
- Jun 28, 2023
- Messages
- 21
- Office Version
- 365
- Platform
- Windows
I have been using a function to determine if a cell contains bold text or not. It worked fine until a few days ago when Excel gave me a pop-up message that it was adding an @ to my formula because of some update. Both worked when I did the normal put the formula in the cell thing and now I get an ?NAME# error.
What I am trying to do is use a formula to determine if a cell in column C is bold or not. Then, use the result in another formula. It doesn't seem to matter if I enter the UDF manually in each cell, copy and paste it, use autofill, or VBA to get the UDF into the cell. I get the same ?NAME# error. The formula as I am entering it in excel looks like this.
=BoldTry(C24)
Can anyone point me to what I am doing wrong?
Thank you in advance!
Rich (BB code):
Function BoldBold(rCell As Range) As Boolean
IsBold = rCell.Font.Bold
End Function
or
Public Function BoldTry(cell As Range)
Application.Volatile
If cell.Font.Bold = True Then
Isbold = True
Else
Isbold = False
End If
End Function
What I am trying to do is use a formula to determine if a cell in column C is bold or not. Then, use the result in another formula. It doesn't seem to matter if I enter the UDF manually in each cell, copy and paste it, use autofill, or VBA to get the UDF into the cell. I get the same ?NAME# error. The formula as I am entering it in excel looks like this.
=BoldTry(C24)
Can anyone point me to what I am doing wrong?
Thank you in advance!