+ Reply to Thread
Results 1 to 6 of 6

printing a sheet for a specific class? or the whole lot?

  1. #1
    Registered User
    Join Date
    05-08-2014
    Location
    England, UK
    MS-Off Ver
    Excel 2013
    Posts
    46

    printing a sheet for a specific class? or the whole lot?

    Hi everyone,

    thank you for taking the time to read my post, I would like to print my tracker for a particular class or if necessary the whole group , but don't know a quick way of doing this unless i select each one individually. I would be grateful to anyone with any suggestions and solutions.

    Cell c6 has a data validation where a pupil is chosen and their data is shown with a graph.

    Thank you
    Attached Files Attached Files

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: printing a sheet for a specific class? or the whole lot?

    CYCLE THROUGH DV OPTIONS
    Here's a basic macro for cycling through all the Data Validation options in a certain cell. The sample then prints out the workbook, but you can replace that line of code with whatever action you prefer, this should give you the basics.
    Cycle Through Data Validation Options




    I tweaked the macro found there and installed it in your workbook.
    Attached Files Attached Files
    Last edited by JBeaucaire; 12-26-2019 at 04:56 PM.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Registered User
    Join Date
    05-08-2014
    Location
    England, UK
    MS-Off Ver
    Excel 2013
    Posts
    46

    Re: printing a sheet for a specific class? or the whole lot?

    Thank you sir!

    It worked brilliantly and i was able to print off all the pupils on my list. However i have a question which i think you may be able to help me with.

    Can i select the printer i want to send the print job to using th VBA code as well. Its because i have 3 printers...and its only printing on my mono laser printer with no colour at all. I can't change any settings to make a default printer but we always can choose which printer we wish to print off. I would like this printed in colour.

    Any suggestions or recommendations would be greatly appreciated.

    Thank you once again

    God bless

  4. #4
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: printing a sheet for a specific class? or the whole lot?

    That's not a "skill" I have, and the few threads I've reviewed about it seem to imply it's not a small thing to control the printer. Doable, but worthy of its own thread to cover the discussion and people more versed in it would pipe in. Sorry.

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.

  5. #5
    Registered User
    Join Date
    05-08-2014
    Location
    England, UK
    MS-Off Ver
    Excel 2013
    Posts
    46

    Re: printing a sheet for a specific class? or the whole lot?

    Thanks you sir,

    found the solution to my problem in the forum with a similar problem..

    Application.Dialogs(xlDialogPrinterSetup).Show


    Best wishes always.

  6. #6
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: printing a sheet for a specific class? or the whole lot?

    Excellent. I'll make a note of that snippet.

+ 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. Printing specific sheet based on row input.
    By rulleeeee in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-09-2014, 12:24 AM
  2. How to check whether a class contains a specific method?
    By XmisterIS in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-17-2014, 11:04 AM
  3. VBA to pull Text from specific div class on webpage
    By Bigbadbigbird in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 11-18-2013, 05:04 PM
  4. specific sheet not printing
    By arctushar in forum Excel General
    Replies: 3
    Last Post: 06-27-2013, 12:36 PM
  5. Macro to prevent printing specific sheet based on cell value in another sheet
    By dbrady01 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-24-2013, 04:23 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