S
Sharon L.
OK, this has me completely stymied. I have made macros to send print jobs to
different printers around the office - my default printer, a large printer
for massive jobs, and another printer for medium sized jobs. Two of them
work, one I can't get to work and it's driving me crazy. I'm on Word 2007.
I created all three the same way - record macro, then just went through the
steps of clicking on the Office button, selecting print, manually selecting
the printer I want, hit print, end recording. They work fine.
The third gives me "printer error" every time. When I hit "debug," the line
with the printer name is highlighted. I've tried every variation of the name
of the printer that I can think of, still nothing. I'm wondering if it's the
printer's name, which shows up as "Nancy's Printer M1522n on server01."
Could that apostrophe be throwing the macro off? I've looked on Nancy's
machine under Start/Settings/Printers & Faxes, chosen "properties" for her
printer and that's the way the name is showing up.
Here's the macro language, in case that will help:
Sub NancyPrinter()
'
' NancyPrinter Macro
'
'
ActivePrinter = "\\SCDESKTOP2\Nancy's Printer M1522n on server01"
Application.PrintOut FileName:="", Range:=wdPrintAllDocument, Item:= _
wdPrintDocumentContent, Copies:=1, Pages:="",
PageType:=wdPrintAllPages, _
ManualDuplexPrint:=False, Collate:=True, Background:=True,
PrintToFile:= _
False, PrintZoomColumn:=0, PrintZoomRow:=0, PrintZoomPaperWidth:=0, _
PrintZoomPaperHeight:=0
End Sub
Any suggestions would be greatly appreciated!! Thanks!
different printers around the office - my default printer, a large printer
for massive jobs, and another printer for medium sized jobs. Two of them
work, one I can't get to work and it's driving me crazy. I'm on Word 2007.
I created all three the same way - record macro, then just went through the
steps of clicking on the Office button, selecting print, manually selecting
the printer I want, hit print, end recording. They work fine.
The third gives me "printer error" every time. When I hit "debug," the line
with the printer name is highlighted. I've tried every variation of the name
of the printer that I can think of, still nothing. I'm wondering if it's the
printer's name, which shows up as "Nancy's Printer M1522n on server01."
Could that apostrophe be throwing the macro off? I've looked on Nancy's
machine under Start/Settings/Printers & Faxes, chosen "properties" for her
printer and that's the way the name is showing up.
Here's the macro language, in case that will help:
Sub NancyPrinter()
'
' NancyPrinter Macro
'
'
ActivePrinter = "\\SCDESKTOP2\Nancy's Printer M1522n on server01"
Application.PrintOut FileName:="", Range:=wdPrintAllDocument, Item:= _
wdPrintDocumentContent, Copies:=1, Pages:="",
PageType:=wdPrintAllPages, _
ManualDuplexPrint:=False, Collate:=True, Background:=True,
PrintToFile:= _
False, PrintZoomColumn:=0, PrintZoomRow:=0, PrintZoomPaperWidth:=0, _
PrintZoomPaperHeight:=0
End Sub
Any suggestions would be greatly appreciated!! Thanks!