+ Reply to Thread
Results 1 to 4 of 4

Yes/No MsgBox looping if No selected

  1. #1
    Registered User
    Join Date
    11-06-2018
    Location
    Texas
    MS-Off Ver
    Office 365 V16
    Posts
    2

    Yes/No MsgBox looping if No selected

    First, I hope I am posting this correctly as this is my first post.


    I'm trying to set this condition for various ranges of my worksheet to bring up a warning when anyone has entered data into a section they should not be altering. The warning should give them the option accept their changes or cancel which undo's the entry prompting the warning. The VBA below works great if you hit Yes, but it you hit no it undo's the entry but continues to loop the warning until you hit Yes. Any advice?

    Please Login or Register  to view this content.

  2. #2
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,468

    Re: Yes/No MsgBox looping if No selected

    You could try this:
    Please Login or Register  to view this content.
    BSB

  3. #3
    Registered User
    Join Date
    11-06-2018
    Location
    Texas
    MS-Off Ver
    Office 365 V16
    Posts
    2

    Re: Yes/No MsgBox looping if No selected

    Perfect, that nailed it! Thanks for the quick help!

  4. #4
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,468

    Re: Yes/No MsgBox looping if No selected

    No problem at all. Happy to help.

    BSB

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Bring up MsgBox when any value selected in Combobox
    By ShakJames in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-15-2016, 12:07 PM
  2. MsgBox only after all selected Macros are run?
    By Nola111 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-21-2014, 10:21 AM
  3. MsgBox looping
    By rajkmr89 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-25-2013, 01:46 PM
  4. [SOLVED] MsgBox to Pop Up - When there is no data in a selected Range
    By Sinalk in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-25-2013, 08:45 AM
  5. [SOLVED] If Row 9 is not selected, then msgbox
    By VBA FTW in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 09-11-2012, 01:36 PM
  6. Msgbox when worksheet is selected
    By obrien2010 in forum Excel General
    Replies: 2
    Last Post: 08-24-2010, 11:53 AM
  7. Looping Data = TRUE to a MsgBox
    By JMay in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-23-2005, 05:06 PM

Tags for this Thread

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