+ Reply to Thread
Results 1 to 3 of 3

If range is 1 then pop up a message box and close the macro

  1. #1
    Registered User
    Join Date
    06-08-2009
    Location
    Annapolis, Maryland
    MS-Off Ver
    Excel 2007
    Posts
    85

    If range is 1 then pop up a message box and close the macro

    Hello again! I have a simple question. I have a macro that when a button is clicked, a message will pop up asking if the file is saved. If so, then a range in that sheet changes from 0 to 1 and the macros continues.

    What I need now is, if the button is clicked while the range is 1, a message will pop up saying it can't be done and they click OK to close the message.

    This is what I have --

    Please Login or Register  to view this content.
    Can someone help? Thanks much!

  2. #2
    Forum Expert Tinbendr's Avatar
    Join Date
    06-26-2012
    Location
    USA
    MS-Off Ver
    Office 2010
    Posts
    2,125

    Re: If range is 1 then pop up a message box and close the macro

    Just add an Else

    Please Login or Register  to view this content.
    David
    (*) Reputation points appreciated.

  3. #3
    Registered User
    Join Date
    06-08-2009
    Location
    Annapolis, Maryland
    MS-Off Ver
    Excel 2007
    Posts
    85

    Re: If range is 1 then pop up a message box and close the macro

    That's it! That's exactly what I needed. Thanks much. (Told ya it would be simple lol)

+ 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