D
Dmitry Kopnichev
Hello experts!
How to check for a bold text formatting through (in) a formula?
How to check for a bold text formatting through (in) a formula?
Dmitry Kopnichev said:Thanks Bob.
I opened Visual Basic Editor, clicked menu View, Code, and pasted the
Function IsBold(rng As Range) As Boolean
Application.Volatile
IsBold = rng.Font.Bold
End Function
Then clicked save.
The formula =ISBold(A1) gives #NAME? , where A1 is bold text. What is wrong?
Dave Peterson said:One typical problem with UDFs is that they weren't placed in a General
module--sometimes, they're placed under a worksheet or under ThisWorkbook and
then the Name error is returned.