+ Reply to Thread
Results 1 to 2 of 2

using a macro to select different printers

  1. #1
    Registered User
    Join Date
    12-21-2011
    Location
    Nashville, TN
    MS-Off Ver
    Excel 2010
    Posts
    13

    using a macro to select different printers

    I have one last issue with my visitor management workbook that I have created and it is this:

    When the macro is ran, the macro copies the information in the userform to 3 other worksheets. One of the worksheets is set up to look like a label and currently it prints the label to the dymo label printer which is the default printer so I have the code for that. The issue is that the next sheet is a vehicle pass which needs to be printed to the color printer in the office. Can code be written so that excel then switches the printer to the color printer and prints the vehicle pass and then switches pack to the default printer so that the next person that starts the userform to log in a visitor will get the correct results and the right documents sent to the right printer?

    If you could help I would appreciate it. The printer names are:

    DYMO LabelWriter 450
    MU_CP2025_Color

    The label prints to the dymo label printer and the vehicle pass prints to the Color printer.
    Attached Files Attached Files

  2. #2
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258

    Re: using a macro to select different printers

    Hello iwiman,

    Application.Active printer either returns or sets the printer. Check the code below to be sure I have switched the printers correctly for the sheets. I have marked the added line in bold text. Make similar changes to your buttons as needed.
    Please Login or Register  to view this content.
    Sincerely,
    Leith Ross

    Remember To Do the Following....

    1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.
    2. Thank those who have helped you by clicking the Star below the post.
    3. Please mark your post [SOLVED] if it has been answered satisfactorily.


    Old Scottish Proverb...
    Luathaid gu deanamh maille! (Rushing causes delays!)

+ 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