+ Reply to Thread
Results 1 to 3 of 3

Highlight the empty cells

  1. #1
    Registered User
    Join Date
    10-23-2011
    Location
    hong kong
    MS-Off Ver
    Excel 2003
    Posts
    2

    Highlight the empty cells

    Hi,

    I would like to highlight the empty cells (Column A to Column H) with data entry in the rows.

    Could you please advise how should I set the range to the last row with data in it?
    Like search for the last row of entry, include it in the range and highlight the empty cells up till that row...

    Here's my code:

    Please Login or Register  to view this content.
    Many thanks!
    Last edited by pike; 10-23-2011 at 11:36 PM. Reason: add code tags for newbie PM rules

  2. #2
    Forum Moderator vlady's Avatar
    Join Date
    09-22-2011
    Location
    Philippines - OLSHCO -Guimba-Nueva Ecija
    MS-Off Ver
    2021
    Posts
    4,361

    Re: Highlight the empty cells

    hello finding the last used cell

    Range("A65536").End(xlup).Select


    you can add this and use as reference
    I think people forget the word "THANK YOU!!!!" Do you still know it???

    There is a little star ( ADD REPUTATION ) below those person who helped you. Click it to say your "PRIVATE APPRECIATION TO THEIR EFFORT ON THEIR CONTRIBUTIONS "

    Regards,
    Vladimir

  3. #3
    Registered User
    Join Date
    10-23-2011
    Location
    hong kong
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: Highlight the empty cells

    Thanks~

    what about....
    searching for the last row with data entry in column A to H


    How should I amend on the following code?

    For Each Rng In Range("A2:H20")

    Or something similar to this one?
    For Each Rng In Range("A2:H" & Range("A2").End(xlDown).Row)


    Cheers,

+ 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