T
Tammy
Hello -
I have been trying to create code in Outlook 2007 that will send an item to
a specific printer. I realize there is no macro recorder in Outlook, and I am
not a programmer, so I've been trying to manipulate code found on a Microsoft
support page, without success.
Does anyone know the code required to send an item to a specific printer,
other than the default?
Here is a sample of what I've found - it includes resetting the default
printer:
Sub MAIN
'Retrieve and set information about the current default printer
Dim FPS As FilePrintSetup
GetCurValues FPS
'Set the default Printer
DefaultPrinter$ = FPS.Printer
FilePrintSetup .Printer = "HP LaserJet IIISi on LPT1:"
'Send the document to the currently selected printer
FilePrint
'Reset to the original default printer
FilePrintSetup .Printer = DefaultPrinter$
End Sub
I changed the printer name to the printer I wanted to use, but am not sure
how to define my default printer name.
I really do not even need to have the printer reset to the default, as I can
add another button that will print to that specific printer, when needed.
Thanks for any help!
I have been trying to create code in Outlook 2007 that will send an item to
a specific printer. I realize there is no macro recorder in Outlook, and I am
not a programmer, so I've been trying to manipulate code found on a Microsoft
support page, without success.
Does anyone know the code required to send an item to a specific printer,
other than the default?
Here is a sample of what I've found - it includes resetting the default
printer:
Sub MAIN
'Retrieve and set information about the current default printer
Dim FPS As FilePrintSetup
GetCurValues FPS
'Set the default Printer
DefaultPrinter$ = FPS.Printer
FilePrintSetup .Printer = "HP LaserJet IIISi on LPT1:"
'Send the document to the currently selected printer
FilePrint
'Reset to the original default printer
FilePrintSetup .Printer = DefaultPrinter$
End Sub
I changed the printer name to the printer I wanted to use, but am not sure
how to define my default printer name.
I really do not even need to have the printer reset to the default, as I can
add another button that will print to that specific printer, when needed.
Thanks for any help!