+ Reply to Thread
Results 1 to 3 of 3

How to built in end macro if user cancels InputBox?

  1. #1
    Forum Contributor
    Join Date
    10-01-2010
    Location
    Jakarta
    MS-Off Ver
    Excel 2003
    Posts
    101

    How to built in end macro if user cancels InputBox?

    How to have macro canceled if the user push "cancel" button from InputBox? Because I get VB error from the code.

    Please Login or Register  to view this content.
    Last edited by vdongen; 10-05-2010 at 03:01 AM.

  2. #2
    Forum Expert pike's Avatar
    Join Date
    12-11-2005
    Location
    Alstonville, Australia
    MS-Off Ver
    2016
    Posts
    5,330

    Re: How to built in end macro if user cancels InputBox?

    Afternoon vdongen
    Try adding an error handler
    Please Login or Register  to view this content.
    If the solution helped please donate to RSPCA

    Site worth visiting: Rabbitohs

  3. #3
    Forum Expert mikerickson's Avatar
    Join Date
    03-30-2007
    Location
    Davis CA
    MS-Off Ver
    Excel 2011
    Posts
    6,229

    Re: How to built in end macro if user cancels InputBox?

    Try
    Please Login or Register  to view this content.
    You might want to use
    Please Login or Register  to view this content.
    to make the user's selection the proper size.
    _
    ...How to Cross-post politely...
    ..Wrap code by selecting the code and clicking the # or read this. Thank you.

+ 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