+ Reply to Thread
Results 1 to 3 of 3

Check for empty cells on exit

  1. #1
    Registered User
    Join Date
    02-14-2013
    Location
    London, England
    MS-Off Ver
    Excel 2007
    Posts
    2

    Check for empty cells on exit

    Hi all,

    I don't have a lot of experience with vba and I've been twisting my melon over this all morning; help would be really appreciated!

    Basically I want to make sure that all the required cells have been completed on closing the work book but theworkbook closes regardless of 'ok' or 'cancel'. I tried unload me instead of Exit Sub but it opens the debugger:
    Please Login or Register  to view this content.
    Thanks,

    Neil

  2. #2
    Forum Expert
    Join Date
    07-16-2010
    Location
    Northumberland, UK
    MS-Off Ver
    Excel 2007 (home), Excel 2010 (work)
    Posts
    3,054

    Re: Check for empty cells on exit

    Change this line:

    Please Login or Register  to view this content.
    To:

    Please Login or Register  to view this content.
    That should do it.

  3. #3
    Registered User
    Join Date
    02-14-2013
    Location
    London, England
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: Check for empty cells on exit

    Thank you so much Andrew, that works perfectly. What a relief!

+ 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