+ Reply to Thread
Results 1 to 6 of 6

Printing worksheets with a click of a button?

  1. #1
    Registered User
    Join Date
    10-13-2007
    Posts
    20

    Printing worksheets with a click of a button?

    I have a workbook that has multiple worksheets that need to be printed. Is it possible to have a button that the user presses to auto print the worksheets?

    Going one step further, could I some how incorporate a check box or a drop down box to specify which sheets are to be printed?



    I'm an excel noob so any links to examples would be welcome.

    Thanks

  2. #2
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    See if links help

    Displaying a Menu of Worksheets to Print


    Print tips for Excel


    Printing Multiple Sheets

    VBA Noob
    _________________________________________


    Credo Elvem ipsum etian vivere
    _________________________________________
    A message for cross posters

    Please remember to wrap code.

    Forum Rules

    Please add to your signature if you found this link helpful. Excel links !!!

  3. #3
    Registered User
    Join Date
    10-13-2007
    Posts
    20
    Thanks, unfortunately I'm not ready for VB yet:o I've just started teaching myself how to use macros.

  4. #4
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    Copy the below code. Press Alt + F11 > Insert Module > paste in code then close VB window. Then press Alt + F8 and select "SelectSheets" from list

    See link to add a shortcut key

    http://www.bettersolutions.com/excel...C216621011.htm

    Please Login or Register  to view this content.
    VBA Noob

  5. #5
    Registered User
    Join Date
    12-11-2008
    Location
    chicago, IL
    Posts
    3

    Select All, Select None

    I'm trying to add "Select All" and "Select None" buttons. After

    Please Login or Register  to view this content.
    I'm adding

    Please Login or Register  to view this content.
    at which point I want to name them, so that I can have a private sub called CommandButton7_Click (the actual name doesn't matter) at the bottom to do the code of selecting all checkboxes. However, I can't seem to name these buttons since they are created automatically (instead of having a userform??). I don't know the syntax that would get me to

    Please Login or Register  to view this content.
    I don't care if i reference a private sub with "Click" or if i reference an outside Macro that does the code, but I'm stuck here.

    My other problem is that I'm going after a moving target. If i use another checkbox, instead of a commandbutton, I don't know what number checkbox I will be on, since the number is dependent on the number of sheets to print... different with every .xls file.

    Any ideas?? Thanks.
    Last edited by VBA Noob; 12-12-2008 at 08:53 AM. Reason: added code tags

  6. #6
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200
    There's a userform here that you can drag into your workbook
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

+ 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