+ Reply to Thread
Results 1 to 2 of 2

VBA code to print Userform to specific Printer

  1. #1
    Registered User
    Join Date
    02-22-2012
    Location
    Rotorua, New Zealand
    MS-Off Ver
    Excel 2003
    Posts
    15

    VBA code to print Userform to specific Printer

    Hi, Looking for a bit of help.

    I am wanting to create a code to print a series of labels via a userform called 'Labels'. On the attached trial file this is carried out by pressing the "Extra org labels' button to the lower right of the 'menu' form. At present my system works fine if I manually change the default printer to the one I want to use each time (i.e. printer = 'Ernie on Ne02'). However, I was hoping someone could suggest a code that would automatically change the printer to 'Ernie on Ne02', then print the userform created labels and then reset the default printer. I've tried a range of options posted on this forum and other but each time they print the worksheet rather than the userform generated labels.

    Thanks for your help
    Ross
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor rollis13's Avatar
    Join Date
    01-26-2012
    Location
    Cordenons
    MS-Off Ver
    Excel 2016 32bit - Win 11
    Posts
    917

    Re: VBA code to print Userform to specific Printer

    Wouldn't something like this do the job ?
    Please Login or Register  to view this content.

+ 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