+ Reply to Thread
Results 1 to 3 of 3

Cells are blank, message box on close

  1. #1
    Forum Contributor
    Join Date
    06-16-2010
    Location
    Tampa, FL
    MS-Off Ver
    Excel 2010
    Posts
    278

    Cells are blank, message box on close

    If all these cells are empty, then a message box pops up on close saying some are empty.

    I know how to do the message box, I'm not sure how to write it so that:
    if D3, D4, D8, D9, D10, D12, D13, etc. etc. are blank, then pop upmsg box

    All of the cells in column D that I'm concerned with are unlocked. So we could say something like if any unlocked cells in column d are blank, then message box.

    Thanks!

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Cells are blank, message box on close

    You don't indicate what is supposed to trigger this macro, we can deal with that later.

    If all these cells must have manually entered values, you can simply COUNT how many do and issue a general error if the count is less than 7.
    Please Login or Register  to view this content.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Forum Expert
    Join Date
    07-31-2010
    Location
    California
    MS-Off Ver
    Excel 2007
    Posts
    4,070

    Re: Cells are blank, message box on close

    JBeaucaire is probably more on track to what you want to do but just in case you want a look at the before_close event something like this might work.
    Please Login or Register  to view this content.
    Note: A loop is not the best way to go here and there could be many issues depending on whats going on in the other cells of column D.

+ 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