+ Reply to Thread
Results 1 to 6 of 6

Confirmation Msg Popup

  1. #1
    Registered User
    Join Date
    10-22-2009
    Location
    Portugal
    MS-Off Ver
    Excel 2007
    Posts
    80

    Confirmation Msg Popup

    Hi all

    I need a little help implementing a confirm popup msg.

    I have this code and would like that when you change the Target.Value it would pop a confirmation box with yes or no option.

    I know how to implement this for a button, but cant figure how do i do it with this code.

    Thanks in advance


    Please Login or Register  to view this content.
    Last edited by Rage; 12-07-2009 at 09:46 AM.

  2. #2
    Registered User
    Join Date
    10-22-2009
    Location
    Portugal
    MS-Off Ver
    Excel 2007
    Posts
    80

    Re: Confirmation Msg Popup

    Nevermind i figured it out.

    Thanks anyway

  3. #3
    Forum Expert dominicb's Avatar
    Join Date
    01-25-2005
    Location
    Lancashire, England
    MS-Off Ver
    MS Office 2000, 2003, 2007 & 2016 365
    Posts
    4,867

    Smile Re: Confirmation Msg Popup

    Quote Originally Posted by Rage View Post
    Nevermind i figured it out.

    Thanks anyway
    Hi Rage

    Glad you're sorted. Why not post your solution so that other users may benefit from it.

    Also, please take a moment top mark your thrread as "solved".

    DominicB
    Please familiarise yourself with the rules before posting. You can find them here.

  4. #4
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Confirmation Msg Popup

    Rage, you need to be careful with how you use Events / Exit Subs etc... problems are avoided here because the Intersect is constant meaning the mid-routine Exit Sub (with events disabled) will never invoke... should it and you would have a problem

    I would say from looking at the code you could consider condensing along the lines of the below (ignoring your msgbox dialog which you say you have handled):

    Please Login or Register  to view this content.
    (Note: I also used Canceled rather than Cancelled)
    Last edited by DonkeyOte; 12-07-2009 at 09:57 AM. Reason: reverted to all string variables for simplicity

  5. #5
    Registered User
    Join Date
    10-22-2009
    Location
    Portugal
    MS-Off Ver
    Excel 2007
    Posts
    80

    Re: Confirmation Msg Popup

    I Just searched a bit on the forum for possible solutions

    and came up with the simplest of them :P


    Please Login or Register  to view this content.
    Inserted this code on begining of mine, and voila it works in perfection :P

  6. #6
    Registered User
    Join Date
    10-22-2009
    Location
    Portugal
    MS-Off Ver
    Excel 2007
    Posts
    80

    Re: Confirmation Msg Popup

    Thanks Donkeyote for reviewing my code.

    Since im not an expert in VBA and im still learning i just go along with what i find and then try to mange it into my sheets.

    But +10 for your quick answer.

+ 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