+ Reply to Thread
Results 1 to 7 of 7

How to check for a bold text formating through (in) a formula?

Hybrid View

  1. #1
    Dmitry Kopnichev
    Guest

    How to check for a bold text formating through (in) a formula?

    Hello experts!
    How to check for a bold text formatting through (in) a formula?




  2. #2
    Bob Phillips
    Guest

    Re: How to check for a bold text formating through (in) a formula?

    A simple UDF will do it

    Function IsBold(rng As Range) As Boolean
    Application.Volatile
    IsBold = rng.Font.Bold
    End Function

    and use like

    =IF(ISBold(A1),...)

    --

    HTH

    Bob Phillips

    (remove nothere from the email address if mailing direct)

    "Dmitry Kopnichev" <kopn@bk.ruDelete> wrote in message
    news:ugy0E$ZIGHA.2896@TK2MSFTNGP09.phx.gbl...
    > Hello experts!
    > How to check for a bold text formatting through (in) a formula?
    >
    >
    >




  3. #3
    Dmitry Kopnichev
    Guest

    Re: How to check for a bold text formating through (in) a formula?

    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?
    "Bob Phillips" <bob.phillips@notheretiscali.co.uk> сообщил/сообщила в
    новостях следующее: news:OiXSqPaIGHA.916@TK2MSFTNGP10.phx.gbl...
    > A simple UDF will do it
    >
    > Function IsBold(rng As Range) As Boolean
    > Application.Volatile
    > IsBold = rng.Font.Bold
    > End Function
    >
    > and use like
    >
    > =IF(ISBold(A1),...)
    >
    > --
    >
    > HTH
    >
    > Bob Phillips
    >
    > (remove nothere from the email address if mailing direct)
    >
    > "Dmitry Kopnichev" <kopn@bk.ruDelete> wrote in message
    > news:ugy0E$ZIGHA.2896@TK2MSFTNGP09.phx.gbl...
    > > Hello experts!
    > > How to check for a bold text formatting through (in) a formula?
    > >
    > >
    > >

    >
    >





  4. #4
    Dmitry Kopnichev
    Guest

    Re: How to check for a bold text formating through (in) a formula?

    Thanks. I know now.
    "Dmitry Kopnichev" <kopn@bk.ruDelete> сообщил/сообщила в новостях следующее:
    news:%23aZlhjaIGHA.2472@TK2MSFTNGP10.phx.gbl...
    > 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?
    > "Bob Phillips" <bob.phillips@notheretiscali.co.uk> сообщил/сообщила в
    > новостях следующее: news:OiXSqPaIGHA.916@TK2MSFTNGP10.phx.gbl...
    > > A simple UDF will do it
    > >
    > > Function IsBold(rng As Range) As Boolean
    > > Application.Volatile
    > > IsBold = rng.Font.Bold
    > > End Function
    > >
    > > and use like
    > >
    > > =IF(ISBold(A1),...)
    > >
    > > --
    > >
    > > HTH
    > >
    > > Bob Phillips
    > >
    > > (remove nothere from the email address if mailing direct)
    > >
    > > "Dmitry Kopnichev" <kopn@bk.ruDelete> wrote in message
    > > news:ugy0E$ZIGHA.2896@TK2MSFTNGP09.phx.gbl...
    > > > Hello experts!
    > > > How to check for a bold text formatting through (in) a formula?
    > > >
    > > >
    > > >

    > >
    > >

    >
    >
    >




  5. #5
    JMay
    Guest

    Re: How to check for a bold text formating through (in) a formula?

    Glad you got your answer.
    Please Share - what was the problem before
    you solved the it?


    "Dmitry Kopnichev" <kopn@bk.ruDelete> wrote in message
    news:eP$zImaIGHA.3856@TK2MSFTNGP12.phx.gbl...
    > Thanks. I know now.
    > "Dmitry Kopnichev" <kopn@bk.ruDelete> сообщил/сообщила в новостях следующее:
    > news:%23aZlhjaIGHA.2472@TK2MSFTNGP10.phx.gbl...
    >> 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?
    >> "Bob Phillips" <bob.phillips@notheretiscali.co.uk> сообщил/сообщила в
    >> новостях следующее: news:OiXSqPaIGHA.916@TK2MSFTNGP10.phx.gbl...
    >> > A simple UDF will do it
    >> >
    >> > Function IsBold(rng As Range) As Boolean
    >> > Application.Volatile
    >> > IsBold = rng.Font.Bold
    >> > End Function
    >> >
    >> > and use like
    >> >
    >> > =IF(ISBold(A1),...)
    >> >
    >> > --
    >> >
    >> > HTH
    >> >
    >> > Bob Phillips
    >> >
    >> > (remove nothere from the email address if mailing direct)
    >> >
    >> > "Dmitry Kopnichev" <kopn@bk.ruDelete> wrote in message
    >> > news:ugy0E$ZIGHA.2896@TK2MSFTNGP09.phx.gbl...
    >> > > Hello experts!
    >> > > How to check for a bold text formatting through (in) a formula?
    >> > >
    >> > >
    >> > >
    >> >
    >> >

    >>
    >>
    >>

    >
    >




  6. #6
    Dave Peterson
    Guest

    Re: How to check for a bold text formating through (in) a formula?

    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.


    JMay wrote:
    >
    > Glad you got your answer.
    > Please Share - what was the problem before
    > you solved the it?
    >
    > "Dmitry Kopnichev" <kopn@bk.ruDelete> wrote in message
    > news:eP$zImaIGHA.3856@TK2MSFTNGP12.phx.gbl...
    > > Thanks. I know now.
    > > "Dmitry Kopnichev" <kopn@bk.ruDelete> сообщил/сообщила в новостях следующее:
    > > news:%23aZlhjaIGHA.2472@TK2MSFTNGP10.phx.gbl...
    > >> 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?
    > >> "Bob Phillips" <bob.phillips@notheretiscali.co.uk> сообщил/сообщила в
    > >> новостях следующее: news:OiXSqPaIGHA.916@TK2MSFTNGP10.phx.gbl...
    > >> > A simple UDF will do it
    > >> >
    > >> > Function IsBold(rng As Range) As Boolean
    > >> > Application.Volatile
    > >> > IsBold = rng.Font.Bold
    > >> > End Function
    > >> >
    > >> > and use like
    > >> >
    > >> > =IF(ISBold(A1),...)
    > >> >
    > >> > --
    > >> >
    > >> > HTH
    > >> >
    > >> > Bob Phillips
    > >> >
    > >> > (remove nothere from the email address if mailing direct)
    > >> >
    > >> > "Dmitry Kopnichev" <kopn@bk.ruDelete> wrote in message
    > >> > news:ugy0E$ZIGHA.2896@TK2MSFTNGP09.phx.gbl...
    > >> > > Hello experts!
    > >> > > How to check for a bold text formatting through (in) a formula?
    > >> > >
    > >> > >
    > >> > >
    > >> >
    > >> >
    > >>
    > >>
    > >>

    > >
    > >


    --

    Dave Peterson

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1