+ Reply to Thread
Results 1 to 3 of 3

MsgBox to call up multiple cells

  1. #1
    Registered User
    Join Date
    03-22-2010
    Location
    London
    MS-Off Ver
    2007
    Posts
    49

    Question MsgBox to call up multiple cells

    Hi all

    I have the following code in my workbook that throws up a msgbox when the necessary 'Date' cell is blank:


    Please Login or Register  to view this content.
    I've adapted this code from some other code that I've recently written, but this doesn't quite do what I want.

    Firstly, is there a way to adapt the code so that, instead of throwing up the 'Yes/No' msg box multiple times for any blank cell it finds in the rnage B20:B26, it just shows one MsgBox that lists all the cells in B20:B25 that are blank?

    Secondly, I've put these as instructions "before close". Is there a way to rewrite so that if the user clicks 'No', the workbook does not close? (I've put
    Please Login or Register  to view this content.
    but that's more of a placeholder as that doesn't actually work.)

    Any help greatly appreciated!

    Best

    Diane

  2. #2
    Forum Contributor tkowal's Avatar
    Join Date
    11-20-2010
    Location
    Miami, Fl
    MS-Off Ver
    Excel 2010
    Posts
    150

    Re: MsgBox to call up multiple cells

    I believe this attachment does what you want....

    MissingDataCancelClosing.xlsm

    Please Login or Register  to view this content.
    Ted
    "Live Long and Prosper"

  3. #3
    Registered User
    Join Date
    03-22-2010
    Location
    London
    MS-Off Ver
    2007
    Posts
    49

    Re: MsgBox to call up multiple cells

    Thanks so much, that's perfect!! Really appreciated!

    Best

    Diane

+ 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