+ Reply to Thread
Results 1 to 4 of 4

Print but don't show user the "cancel" option

  1. #1
    Forum Contributor
    Join Date
    07-02-2012
    Location
    Florida
    MS-Off Ver
    Home -Excel 2007, Work 2016
    Posts
    254

    Print but don't show user the "cancel" option

    My code (I use named cells and named areas)
    #ActiveSheet.PageSetup.PrintArea = "PrintReleaseForSub"
    ActiveWindow.SelectedSheets.PrintOut Copies:=1"

    What change can I make to print - with no options available to user.

  2. #2
    Valued Forum Contributor saravnepali's Avatar
    Join Date
    01-14-2019
    Location
    Sydney Australia
    MS-Off Ver
    2010
    Posts
    447

    Re: Print but don't show user the "cancel" option

    If you want to print physical paper, and you know the printer name
    1

    You can add the ActivePrinter as an argument to PrintOut.
    Please Login or Register  to view this content.
    Display print setup
    Please Login or Register  to view this content.
    Unless you want to print, as pdf file

    Please Login or Register  to view this content.
    Last edited by saravnepali; 12-19-2019 at 01:17 AM.
    If you think someone helped you, click on the "* Add Reputation" as a way to say thank you.

    If your problem is solved, go to Thread Tools and select Mark This Thread Solved

  3. #3
    Forum Contributor
    Join Date
    07-02-2012
    Location
    Florida
    MS-Off Ver
    Home -Excel 2007, Work 2016
    Posts
    254

    Re: Print but don't show user the "cancel" option

    Thank you!! I may go with your PDF suggestion.
    Worksheet has money posted to it weekly until until funds reach 0
    The macros takes their entries, arranged differently, prints and then updates the worksheet for the next weeks postings.
    While I have been unable to move fast enough to see what would happen if I clicked the cancel button, i am concerned that if they did cancel, the macro would stop.
    You have any knowledge of what could happen if printing is canceled when printing is in the middle of a "doing things to the worksheet" macro?
    What a Dummy I am at this - but just had an idea - is there code I could use that would made sure nothing stops if they hit the cancel???

  4. #4
    Valued Forum Contributor saravnepali's Avatar
    Join Date
    01-14-2019
    Location
    Sydney Australia
    MS-Off Ver
    2010
    Posts
    447

    Re: Print but don't show user the "cancel" option

    It is very hard to understand what exactly you need.

    It would be easier to have a sample workbook for this.

    Refer to the yellow ribbon at the top.

    Also, as a general forum rule, it is advisable to close old thread AND have NEW thread open for a new topic

+ 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. [SOLVED] Code Clean-Up: Delete "False" worksheet created when "Cancel" is chosen in Input Box
    By Kenny Blackwell in forum Excel Programming / VBA / Macros
    Replies: 25
    Last Post: 08-31-2015, 10:00 AM
  2. Replies: 1
    Last Post: 11-05-2014, 04:29 AM
  3. Drop down box which allows an "other" option which lets user type
    By Muzza86 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-23-2014, 03:36 AM
  4. [SOLVED] How to enable user to click "cancel" if file name exists when saving as...
    By TBO in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 01-31-2014, 02:22 PM
  5. [SOLVED] VBA Excel If Then Statement doesn't "undo" when user corrects selected option
    By eemiller1997 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-27-2012, 09:19 AM
  6. cell B1 to show a "list option"
    By bsanford79 in forum Excel - New Users/Basics
    Replies: 3
    Last Post: 06-16-2008, 06:25 AM
  7. Replies: 0
    Last Post: 11-09-2005, 03:45 PM

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