+ Reply to Thread
Results 1 to 3 of 3

Pop-Up Window Before Closing If ...

  1. #1
    Registered User
    Join Date
    11-25-2003
    Location
    Decatur, Alabama
    Posts
    94

    Pop-Up Window Before Closing If ...

    Friends,

    I would like to have a pop-up window alert users when two cells do not have the same value in them and they try to close the file.

    I would like the users to have the option of either canceling the popup or closing the form. If they cancel the popup they end up just going back to the form so they can change the value of one of the cells. If they close the form it simply closes it.

    Can someone help to create the code needed to do this?

    Thank you very much,
    Mike
    Learn to Serve Others. Kindness is far better than the alternative.

  2. #2
    Valued Forum Contributor
    Join Date
    02-09-2012
    Location
    Mauritius
    MS-Off Ver
    Excel 2007
    Posts
    1,055

    Re: Pop-Up Window Before Closing If ...

    Hi Mike.

    Post an excel file with your problem. Which values have to match?
    Click *, if my suggestion helps you. Have a good day!!

  3. #3
    Valued Forum Contributor Sean Thomas's Avatar
    Join Date
    03-25-2012
    Location
    HerneBay, Kent, UK
    MS-Off Ver
    Excel 2007,2016
    Posts
    971

    Re: Pop-Up Window Before Closing If ...

    try this

    code to be entered in ThisWorkbook module

    Please Login or Register  to view this content.
    Regards
    Sean

    Please add to my reputation if you think i helped
    (click on the star below the post)
    Mark threads as "Solved" if you have your answer
    (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code:
    [code] Your code here [code]
    Please supply a workbook containing example Data:
    It makes its easier to answer your problem & saves time!

+ 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