Results 1 to 2 of 2
  1. #1
    2 Star Lounger
    Join Date
    Oct 2001
    Location
    Not in KC anymore
    Posts
    192
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Check cell contents before proceeding (2007)

    Hello all,

    I have a fairly complex macro that runs quite well as it is, but I'm looking to add some "safety" features to it. I need a way to verify that there are no blank cells in some specific cells (not necessarily adjacent cells either).

    I need a check in place that will halt and exit the macro and display a message box if the various cells are empty.

    I already have two If/Thens within the macro and I've tried inserting new ones, but keep getting error messages stating that I have an If block without an EndIf and vice versa.

    Any help is appreciated.

    I've attached a version the code I'm currently using
    Attached Files Attached Files

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Check cell contents before proceeding (2007)

    Try the attached version.

    Note: indenting your code consistently helps tremendously to understand the overall structure of the code and to find mistakes.
    Attached Files Attached Files

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •