Error Checking in Excel
Thanks Thanks:  0
Likes Likes:  0
Results 1 to 3 of 3

Thread: macro for printing to nondefault printer

  1. #1
    New Member
    Join Date
    Apr 2002
    Location
    McStevens
    Posts
    3
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    I can't get my macro to work where I set the active printer to a printer name. It doesn't recognize the network printer even though I used the exact printer name. If I record a macro where I select the network printer it works fine on that workstation but if I use it from another workstation it can't find the network printer even though that workstation can see that printer and can print to it. Any suggestions?
    Peter

    [ This Message was edited by: McStevens on 2002-04-24 14:36 ]

  2. #2
    Board Regular
    Join Date
    Mar 2002
    Location
    Cincinnati, Ohio, USA
    Posts
    6,824
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    Post your code Peter

    [ This Message was edited by: TsTom on 2002-04-24 09:57 ]

  3. #3
    New Member
    Join Date
    Apr 2002
    Location
    McStevens
    Posts
    3
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    I've tried it 2 ways:

    1st
    ActiveSheet.PrintOut ActivePrinter:="Office2"

    2nd
    xOriginalPrinter = Application.ActivePrinter
    Application.ActivePrinter = "Office2"
    ActiveSheet.PrintOut
    Application.ActivePrinter = xOriginalPrinter

    both of these follow some other code doing calculations.
    Pete

Some videos you may like

User Tag List

Like this thread? Share it with others

Like this thread? Share it with others

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •