![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
New Member
Join Date: Apr 2002
Location: McStevens
Posts: 3
|
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 |
|
Board Regular
Join Date: Mar 2002
Location: Cincinnati, Ohio, USA
Posts: 6,824
|
Post your code Peter
[ This Message was edited by: TsTom on 2002-04-24 09:57 ] |
|
|
|
|
|
#3 |
|
New Member
Join Date: Apr 2002
Location: McStevens
Posts: 3
|
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 |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|