Why not set up two printers using the same printer and modify this to suit
Sub PrintToAnotherPrinter()
Dim STDprinter As String
STDprinter = Application.ActivePrinter
Application.ActivePrinter = "microsoft fax on fax:"
' change printer
ActiveSheet.PrintOut
' prints the active sheet
Application.ActivePrinter = STDprinter
' change back to standard printer
End Sub
Don Guillett
SalesAid Software
[email protected]
-----Original Message-----
From: Sam Adams
Sent: Wednesday, November 16, 2011 12:45 PM
To: MS EXCEL AND VBA MACROS
Subject: $$Excel-Macros$$ VBA Excel Macro for Printer Command
I am working on a large project management macro and need to be able
to tell our Konica 920 printer to print a document (i.e. c:
\document.pdf) from a specific printer tray. As the macro runs, I
need to switch between printer trays based on other already setup
codes.
i.e.
For All documents
If DOCUMENT = ".pdf" then
Print to Konica 920 with settings
.PrinterTray =
.HolePunch =
.Copies =
ETC
Else
Loop
I have the loop properly programmed and all sorting commands built in,
I only need the VBA language to tell a given filename to print with
specific settings from a Konica 920.
Any help would be much appreciated.
Thanks,
Sam
--
FORUM RULES (934+ members already BANNED for violation)
1) Use concise, accurate thread titles. Poor thread titles, like Please
Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will
not get quick attention or may not be answered.
2) Don't post a question in the thread of another member.
3) Don't post questions regarding breaking or bypassing any security
measure.
4) Acknowledge the responses you receive, good or bad.
5) Cross-promotion of, or links to, forums competitive to this forum in
signatures are prohibited.
NOTE : Don't ever post personal or confidential data in a workbook. Forum
owners and members are not responsible for any loss.
------------------------------------------------------------------------------------------------------
To post to this group, send email to [email protected]
--
FORUM RULES (934+ members already BANNED for violation)
1) Use concise, accurate thread titles. Poor thread titles, like Please Help,
Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get
quick attention or may not be answered.
2) Don't post a question in the thread of another member.
3) Don't post questions regarding breaking or bypassing any security measure.
4) Acknowledge the responses you receive, good or bad.
5) Cross-promotion of, or links to, forums competitive to this forum in signatures are prohibited.
NOTE : Don't ever post personal or confidential data in a workbook. Forum
owners and members are not responsible for any loss.
------------------------------------------------------------------------------------------------------
To post to this group, send email to [email protected]