+ Reply to Thread
Results 1 to 7 of 7

highlight cells in column 'G' that contains the word null

  1. #1
    Registered User
    Join Date
    03-16-2015
    Location
    Bangkok
    MS-Off Ver
    2007
    Posts
    28

    highlight cells in column 'G' that contains the word null

    Hi, can anyone provide me with the vba codes to highlight cells in column 'G' that contain the word NULL
    I'm a beginner in VBA and programming so any help will be highly appreciated.
    thank you in advance

  2. #2
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 2013
    Posts
    7,830

    Re: highlight cells in column 'G' that contains the word null

    Try:
    Please Login or Register  to view this content.
    You can say "THANK YOU" for help received by clicking the Star symbol at the bottom left of the helper's post.
    Practice makes perfect. I'm very far from perfect so I'm still practising.

  3. #3
    Registered User
    Join Date
    04-16-2015
    Location
    United Kingdom
    MS-Off Ver
    2007
    Posts
    7

    Re: highlight cells in column 'G' that contains the word null

    I'm new to but I think you can also use conditional formatting for this and use equal to

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,944

    Re: highlight cells in column 'G' that contains the word null

    Tony, you are correct, however, it appears the OP wants a VB solution
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  5. #5
    Forum Expert
    Join Date
    02-22-2013
    Location
    London, UK
    MS-Off Ver
    Office 365
    Posts
    1,218

    Re: highlight cells in column 'G' that contains the word null

    Hi,
    here's another alternative elaborating with the evaluate function:
    Please Login or Register  to view this content.
    Otherwise, in addition to Mumps1's suggested approach, you could also use autofilter or the find+findnext function.

    Kind regards,
    berlan
    Last edited by berlan; 04-17-2015 at 05:12 PM.

  6. #6
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,555

    Re: highlight cells in column 'G' that contains the word null

    ↑ will give you error when the number of cells that contains "NULL" exceeds about 40

    Please Login or Register  to view this content.

  7. #7
    Forum Contributor
    Join Date
    07-30-2014
    Location
    USA
    MS-Off Ver
    Version 14.4.3, Mac 2011
    Posts
    145

    Re: highlight cells in column 'G' that contains the word null

    Please Login or Register  to view this content.
    This is amazing!! All of my sort code in workbooks now looks pristine and beautiful when it runs. This is why i read through all of these posts! Thanks :D

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. I need a macro to highlight a column having a word which is another column's entry
    By Athi123 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 01-24-2013, 02:10 AM
  2. [SOLVED] only show/highlight rows where a certain word appears in any column
    By intothewild in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 03-28-2012, 03:26 PM
  3. Highlight EVERY instance of a word in cells
    By pinapples in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-06-2011, 07:53 AM
  4. Conditional formating highlight cells in column Q that have certain word in it
    By rain4u in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 01-30-2011, 02:26 PM
  5. Filter Row using Date and Column using Null Cells
    By lui_roc in forum Excel General
    Replies: 0
    Last Post: 06-10-2008, 12:15 PM

Tags for this Thread

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