+ Reply to Thread
Results 1 to 7 of 7

VBA to colour cells that are blank but only if data in specific row

  1. #1
    Forum Contributor
    Join Date
    02-01-2013
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    124

    VBA to colour cells that are blank but only if data in specific row

    Hi all,

    I am using the code below to colour cells yellow that are empty & require data input....

    Please Login or Register  to view this content.
    The problem I have is that I now need it to check if text is in a column in a table, if there is text then to highlight blank cells yellow otherwise it I need it to ignore the blanks for that row. I've edited the code below to include the range I require it to check for text first & have highlighted it red. Can anyone easily identify what the problem is?

    Please Login or Register  to view this content.

    Thanks

  2. #2
    Forum Contributor
    Join Date
    02-01-2013
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    124

    Re: VBA to colour cells that are blank but only if data in specific row

    I've attached a sample to make it easier for anyone who can help....
    Attached Files Attached Files

  3. #3
    Forum Guru JosephP's Avatar
    Join Date
    03-27-2012
    Location
    Ut
    MS-Off Ver
    2003/10
    Posts
    7,328

    Re: VBA to colour cells that are blank but only if data in specific row

    perhaps
    Please Login or Register  to view this content.
    Josie

    if at first you don't succeed try doing it the way your wife told you to

  4. #4
    Forum Contributor
    Join Date
    02-01-2013
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    124

    Re: VBA to colour cells that are blank but only if data in specific row

    Thanks for your response Joseph!

    Unfortunately this is still highlighting rows 22 to 24 & 41 to 43 even though column B is blank.

  5. #5
    Forum Guru JosephP's Avatar
    Join Date
    03-27-2012
    Location
    Ut
    MS-Off Ver
    2003/10
    Posts
    7,328

    Re: VBA to colour cells that are blank but only if data in specific row

    I misunderstood your request based on the code you added
    Please Login or Register  to view this content.

  6. #6
    Forum Contributor
    Join Date
    02-01-2013
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    124

    Re: VBA to colour cells that are blank but only if data in specific row

    Works great! Thanks a lot Joseph

  7. #7
    Forum Guru JosephP's Avatar
    Join Date
    03-27-2012
    Location
    Ut
    MS-Off Ver
    2003/10
    Posts
    7,328

    Re: VBA to colour cells that are blank but only if data in specific row

    you're welcome :-)

+ 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