+ Reply to Thread
Results 1 to 4 of 4

Check for Blanks within a selection range

  1. #1
    Registered User
    Join Date
    04-27-2011
    Location
    America
    MS-Off Ver
    Excel 2007
    Posts
    21

    Check for Blanks within a selection range

    I am trying to create a macro that will check within the currect selection for any cells that are blank. If they are blank I would like it to have an error message and maybe change the cell a yellow color. Right now I have a macro that will run before each save to select the cells that I need checked for blanks cells but I can get the other macro to work correctly.


    The code that selects the cells I need checked.

    Please Login or Register  to view this content.
    Last edited by Eamonn; 04-27-2011 at 02:30 PM.

  2. #2
    Valued Forum Contributor tlafferty's Avatar
    Join Date
    04-08-2011
    Location
    United States, Tacoma, WA
    MS-Off Ver
    Excel 2010, Excel 2013 Customer Preview
    Posts
    1,112

    Re: Check for Blanks within a selection range

    Something like:
    Please Login or Register  to view this content.
    If your question has been satisfactorily addressed, please consider marking it solved. Click the Thread Tools dropdown and select Mark thread as solved.
    Also, you might want to add to the user's reputation by clicking the star icon in the lower left corner of the post with the answer- it's why we do what we do...

    Thomas Lafferty
    Analyst/Programmer

  3. #3
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,481

    Re: Check for Blanks within a selection range

    You can use the specialcells to identify the blank cells.

    Please Login or Register  to view this content.
    Cheers
    Andy
    www.andypope.info

  4. #4
    Registered User
    Join Date
    04-27-2011
    Location
    America
    MS-Off Ver
    Excel 2007
    Posts
    21

    Re: Check for Blanks within a selection range

    Got it to work with both of your help!! Thanks!

+ 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