M
Mike Starr
I'm executing the following code and it appears that the SendKeys statement
is causing the system to "hang" for about a minute the first time it's
executed. The cursor freezes and it appears that the system is completely
hung but after a minute, the application.printout statement executes as if
nothing had happened. Anyone got any idea why it's hanging and what I can do
about it??
Thanks
Mike
pdffilename = "C:\MarketingSheets\" _
& DocumentSettings.FileName _
& LogoName _
& ".pdf" '
SendKeys pdffilename + "{enter}"
Application.PrintOut _
Range:=wdPrintAllDocument, _
Item:=wdPrintDocumentContent, _
Copies:=1, _
Pages:="", _
PageType:=wdPrintAllPages, _
Collate:=True, _
Background:=False, _
PrintToFile:=False, _
PrintZoomColumn:=0, _
PrintZoomRow:=0, _
PrintZoomPaperWidth:=0, _
PrintZoomPaperHeight:=0
--
is causing the system to "hang" for about a minute the first time it's
executed. The cursor freezes and it appears that the system is completely
hung but after a minute, the application.printout statement executes as if
nothing had happened. Anyone got any idea why it's hanging and what I can do
about it??
Thanks
Mike
pdffilename = "C:\MarketingSheets\" _
& DocumentSettings.FileName _
& LogoName _
& ".pdf" '
SendKeys pdffilename + "{enter}"
Application.PrintOut _
Range:=wdPrintAllDocument, _
Item:=wdPrintDocumentContent, _
Copies:=1, _
Pages:="", _
PageType:=wdPrintAllPages, _
Collate:=True, _
Background:=False, _
PrintToFile:=False, _
PrintZoomColumn:=0, _
PrintZoomRow:=0, _
PrintZoomPaperWidth:=0, _
PrintZoomPaperHeight:=0
--