+ Reply to Thread
Results 1 to 4 of 4

IF Statements + MsgBox and Exit Excel without saving

  1. #1
    Registered User
    Join Date
    08-21-2007
    Posts
    90

    IF Statements + MsgBox and Exit Excel without saving

    I am really having issues with multiple IF statements.

    THIS ISSUE:
    following code works with the remarked lines out.
    ALL I want to do is is if
    Range ("H5") <+ 0. then put up a message box and when user clicks on the OK in message box, to exit Excel and not save the workbook.

    Otherwise run the code as is.

    I do this stuff for free as part of a retired businessman's organization. Keeps me young, but Excel is so powerful it is difficult to grasp at times.

    Any good book or online source of explanation? You guys are super, but I need to understand this. I may be a "old Dude", but I hate to not learn.


    Thanks,
    JW


    Please Login or Register  to view this content.
    Last edited by johnnywinter; 02-01-2009 at 09:13 PM.

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: IF Statements + MsgBox and Exit Excel without saving

    Maybe
    Please Login or Register  to view this content.
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: IF Statements + MsgBox and Exit Excel without saving

    Hi

    How about:

    Please Login or Register  to view this content.
    HTH
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  4. #4
    Registered User
    Join Date
    08-21-2007
    Posts
    90

    Re: IF Statements + MsgBox and Exit Excel without saving

    Works perfectly, thanks to both of you.

    JW

+ 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