Converor de Múltiplos Arquivos Word
Converor de Múltiplos Arquivos Word
Converor de Múltiplos Arquivos Word
files?
It is easy for you to convert a Word document to a PDF file with the Save as function in
Word. But if you want to convert all Word documents in a folder to separate PDF files
at once, how can you achieve it? This article will show you a VBA code to batch
convert multiple Word documents to pdf files in Word.
Batch convert multiple Word documents to pdf files with Kutools for Word
The Document Format Converter utility of Kutools for Excel can help you quickly
convert all .docx format documents in a specified folder to pdf files. See screenshot:
The following VBA code helps you quickly convert all Word documents in a folder to
pdf files at once. Please do as follows.
1. In Word, press the Alt + F11 keys to open the Microsoft Visual Basic for
Applications window.
2. In the Microsoft Visual Basic for Applications window, click Insert > Module,
then copy below VBA code into the Module window.
VBA code: Batch convert multiple Word documents to pdf files in Word
Sub ConvertWordsToPdfs()
wdOpenFormatAuto, XMLTransform:=""
ExportFormat:=wdExportFormatPDF, OpenAfterExport:=False,
OptimizeFor:= _
CreateBookmarks:=wdExportCreateNoBookmarks,
DocStructureTags:=True, _
BitmapMissingFonts:=True, UseISO19005_1:=False
ActiveDocument.Close
End If
xFileName = Dir()
Wend
End Sub
4. A Browse dialog pops up, please select the folder which contains Word documents
you will convert to pdf files, and click the OK button.
Then all Word documents in selected folder are converted to separate pdf files at
once. See screenshot:
Batch convert multiple Word documents to pdf files with Kutools for Word
If VBA code is hard to handle, you can try the Convert documents utility of Kutools
for Word to solve the problem.
Kutools for Word : With more than 100 handy Word add-ins, free to try with no
limitation in 30 days.
2.1) Select the folder contains documents you will convert to pdf in the Source file
folder section;
2.2 Select Convert docx to pdf from the Format Convert drop-down list;
2.3) By default, the Destination path same as source box is checked. If you want to
place all converted pdf files in the same folder, just keep this option selected;
If you want to separate the pdf files and the source documents, you need to uncheck
the Destination path same as source box, and select a new folder to save the pdf
files in the Save to box;
3. Then a dialog box pops up to tell you how many documents have been successfully
converted, click the OK button and close the Document Format Converter window.
If you want to have a free trial of this utility, please go to free download the
software first, and then go to apply the operation according above steps.
https://www.extendoffice.com/documents/word/5551-word-batch-convert-to-pdf.html