Printing

O

ordnance1

The code below is suppose to print a worksheet, but my problem is that it
prints to a specific network printer and that printer is not always assigned
to Ne09. The number is not always assigned to that printer. I have seen it be
anything from Ne01 to Ne10. Any way this code can be forced to look for the
proper Ne##?

Sub Macro7()
'
' Macro7 Macro
' Macro recorded 8/28/2008 by wta
'

'
Application.ActivePrinter = "\\printserver1\ParaT_HPLJ_3800 on Ne09:"
ActiveWindow.SelectedSheets.PrintOut Copies:=1, ActivePrinter:= _
"\\printserver1\ParaT_HPLJ_3800 on Ne09:", Collate:=True
End Sub
 
G

Gary Keramidas

maybe someone has an idea, but how about this?

application.Dialogs(xlDialogPrint).Show
 
P

Patrick C. Simonds

I do not want the print dialogbox to show. This was just a snippet of code.
The actual macro is more involved. I just need a way to get it to go to the
right printer.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top