+ Reply to Thread
Results 1 to 3 of 3

Message Box answer No then do this...

  1. #1
    Forum Contributor
    Join Date
    02-04-2014
    Location
    NSW, Australia
    MS-Off Ver
    Excel 2010
    Posts
    136

    Message Box answer No then do this...

    I have a message box vbYesNo

    All is well when Yes is selected.

    When No is selected i want it to exit sub and clear checkbox1

    If Ans = vbNo Then Exit Sub
    CheckBox1.Value = False

    How do i combine the 2 to make it work?

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,464

    Re: Message Box answer No then do this...

    Please Login or Register  to view this content.
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Forum Contributor
    Join Date
    02-04-2014
    Location
    NSW, Australia
    MS-Off Ver
    Excel 2010
    Posts
    136

    Re: Message Box answer No then do this...

    Perfect thanks, i knew i was close but the end ifs were bugging me

+ 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. Macro that will hide/unhide rows based on message box answer
    By Aplampert in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-02-2014, 05:50 PM
  2. Message Box after no answer in an answer box
    By alrichar in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-05-2013, 10:45 AM
  3. Answer message Yes to open workbook
    By debbiesh in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-15-2012, 10:43 AM
  4. Code to answer No to an error message
    By boohah in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 08-12-2010, 09:21 AM
  5. How can I skip or automatically answer an Excel message?
    By rkjudy in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-23-2009, 10:14 PM
  6. Code to auto-answer a message box
    By rkjudy in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-09-2009, 03:23 AM

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