S
Steve
I’m trying to write a macro that will that will print the current document
that’s open to pdf file in a desired folder (in my case the folder is drive
z:\word).
I’m using Word 2007 with Adobe Pro v8.
In doing some research, it seems that I need to write a VBA code to
accomplish the task. I have a very limited knowledge base when it comes to
writing code. Here's what I've come up with so far.
Sub PrintPDF()
'
' PrintPDF Macro
'
'
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
Sub OpenFolder()
With Application.Dialogs(wdDialogFileOpen)
.Name = "Z:\Word"
.Show
End With
End Sub
that’s open to pdf file in a desired folder (in my case the folder is drive
z:\word).
I’m using Word 2007 with Adobe Pro v8.
In doing some research, it seems that I need to write a VBA code to
accomplish the task. I have a very limited knowledge base when it comes to
writing code. Here's what I've come up with so far.
Sub PrintPDF()
'
' PrintPDF Macro
'
'
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
Sub OpenFolder()
With Application.Dialogs(wdDialogFileOpen)
.Name = "Z:\Word"
.Show
End With
End Sub