Results 1 to 5 of 5

Input box and the cancel button

Threaded View

Saturn Input box and the cancel... 05-22-2014, 11:56 AM
Winon Re: Input box and the cancel... 05-22-2014, 12:21 PM
Saturn Re: Input box and the cancel... 05-22-2014, 12:36 PM
Winon Re: Input box and the cancel... 05-22-2014, 12:56 PM
Winon Re: Input box and the cancel... 05-22-2014, 01:21 PM
  1. #1
    Forum Contributor
    Join Date
    10-31-2006
    Location
    Oslo, Norway
    MS-Off Ver
    MS 365 Business
    Posts
    287

    Input box and the cancel button

    By clicking the print-button the user may select the area to be printed.

    But if I click the Cancel button, or the upper right X, the print message is sent to the printer, even it shouldn't.
    How do I write the code for cancelling the print when clicking the cancel button?
    Please see the VBA editor in the attached file.

    A last question: is it necessary to declare the variable?

    Saturn
    Attached Files Attached Files
    Last edited by Saturn; 05-22-2014 at 01:08 PM.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Input Box must be integer, Cancel button type mismatch
    By Nrowell92 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-30-2012, 03:29 PM
  2. Cancelling an inputbox if blank input or cancel button is pressed
    By kathhying in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-01-2011, 12:07 PM
  3. Cancel button on input box causes crash
    By EGR2317 in forum Excel General
    Replies: 8
    Last Post: 06-04-2010, 09:51 AM
  4. Cancel button to cancel the whole macro
    By excelnut1954 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 01-17-2006, 04:30 PM
  5. input box - I don't need the "cancel" button
    By Paula in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-04-2005, 11:40 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