+ Reply to Thread
Results 1 to 3 of 3

Exit Sub when I hit cancel

  1. #1
    Forum Contributor
    Join Date
    02-20-2007
    MS-Off Ver
    2003 & 2007
    Posts
    299

    Exit Sub when I hit cancel

    How can I get the following code to exit sub and not do anything if I hit cancel at the 1st input box? I have other input boxes that continue through the code if cancel is hit and that is what I want. Just not the 1st one.
    Thank you very much for your time and help.

    Please Login or Register  to view this content.

  2. #2
    Registered User
    Join Date
    01-13-2007
    Posts
    71
    i guess you can add the following code right after the inputbox command...

    Please Login or Register  to view this content.

  3. #3
    Forum Contributor
    Join Date
    02-20-2007
    MS-Off Ver
    2003 & 2007
    Posts
    299
    that's perfect!!! thank you very much for your time and help.

+ 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