+ Reply to Thread
Results 1 to 6 of 6

code not working to highlight a cell if blank

  1. #1
    Registered User
    Join Date
    08-11-2009
    Location
    Gilbert, Arizona, USA
    MS-Off Ver
    Excel 2003
    Posts
    82

    code not working to highlight a cell if blank

    I have a bit of code that should find a blank cell within a column and paint that cell as a color 6 (color of a yellow highlighter).

    Please Login or Register  to view this content.
    Basically, if any cell within the column "AG" has been left blank, I need just that cell highlighted. I am a beginner and came up with this code by piecing together other code that has worked for me. I think the "UCase" is wrong but I don't know what to put in its place. Is that all?
    Thanks.
    Last edited by curbster; 09-08-2009 at 04:53 PM.

  2. #2
    Forum Expert
    Join Date
    12-10-2006
    Location
    Sydney
    MS-Off Ver
    Office 365
    Posts
    3,525

    Re: code not working to highlight a cell if blank

    Hi curbster,

    Try this:

    Please Login or Register  to view this content.
    HTH

    Robert
    ____________________________________________
    Please ensure you mark your thread as Solved once it is. Click here to see how
    If this post helps, please don't forget to say thanks by clicking the star icon in the bottom left-hand corner of my post

  3. #3
    Forum Expert Palmetto's Avatar
    Join Date
    04-04-2007
    Location
    South Eastern, USA
    MS-Off Ver
    XP, 2007, 2010
    Posts
    3,978

    Re: code not working to highlight a cell if blank

    Please Login or Register  to view this content.

  4. #4
    Registered User
    Join Date
    08-11-2009
    Location
    Gilbert, Arizona, USA
    MS-Off Ver
    Excel 2003
    Posts
    82

    Re: code not working to highlight a cell if blank

    Thanks guys!

    Robert I appreciate your help, your code did not work it came back in the debugger with the word "cell" highlighted. I'm not completely sure but I noticed it was not dimensioned above, maybe that's why?

    Palmetto, thanks, your code worked like a charm with no alterations on my part.

    Curbster

  5. #5
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: code not working to highlight a cell if blank

    Here's another way:
    Please Login or Register  to view this content.
    Entia non sunt multiplicanda sine necessitate

  6. #6
    Forum Expert
    Join Date
    12-10-2006
    Location
    Sydney
    MS-Off Ver
    Office 365
    Posts
    3,525

    Re: code not working to highlight a cell if blank

    Hi Curbster,

    That's strange as it worked fine for me

    Anyway, seems you've found a workable solution which is good news

    Regards,

    Robert

+ 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