1. Welcome to Chandoo.org Forums. Short message for you

    Hi Guest,

    Thanks for joining Chandoo.org forums. We are here to make you awesome in Excel. Before you post your first question, please read this short introduction guide. When posting or responding to questions please remember our values at Chandoo.org are: Humility, Passion, Fun, Awesomeness, Simplicity, Sharing Remember that we have people here for whom English is not there first language and we need to allow for this in our dealings.

    Yours,
    Chandoo
  2. Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  3. When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Highlighted Iferror value

Discussion in 'Ask an Excel Question' started by Sarankbm, Jun 17, 2017 at 11:46 AM.

  1. Sarankbm

    Sarankbm New Member

    Messages:
    14
    Hi Friends,

    I was run the Vlookup vba code if any error throw the same lookup (First) value that value
    highlighted any one color. but error appeared

    Please find below mention code.
    highlighted error bold letter

    Code:

    sub aa()
    Range("a:a") = Application.IfError(Application.WorksheetFunction.VLookup(Range("a:a"), _
    Worksheets("Sheet2").Range("A1:C10"), 1, False), Range("a:a").Font.ColorIndex = vbRed)
    end sub


    Kindly help me

    Regards,
    Saran.K
  2. Hui

    Hui Excel Ninja Staff Member

    Messages:
    10,375
    Saran.K

    Can you please attach a sample work book with a sample of what you are trying to achieve
  3. NARAYANK991

    NARAYANK991 Excel Ninja

    Messages:
    14,654
    Hi ,

    See the attached workbook.

    Narayan

    Attached Files:

    Thomas Kuriakose likes this.
  4. Sarankbm

    Sarankbm New Member

    Messages:
    14
    Hi Narayan,

    Really thank you

    Ragards,
    Saran.K

Share This Page