Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Code to create fillable PDF from Word

Status
Not open for further replies.

TDugan

Technical User
Oct 12, 2012
18
US
I have a word document that I manipulate what displays based on input from a userform.

Once the code has generated the correct version of the document based on the inputs, I convert the word document to a PDF (also with code). Works fine.

But, is there code that would create a fillable PDF?

Here is the current code I am using to create the non-fillable PDF.

ActiveDocument.ExportAsFixedFormat OutputFileName:= _
"I:\P-13100 Output\" & txtPlanNum.Text & " Form.pdf", _
ExportFormat:=17, _
OpenAfterExport:=True, _
OptimizeFor:=0, _
Range:=0, _
From:=1, _
to:=1, _
Item:=0, _
IncludeDocProps:=True, _
KeepIRM:=True, _
CreateBookmarks:=0, _
DocStructureTags:=True, _
BitmapMissingFonts:=True, _
UseISO19005_1:=False

Thanks!
 
Word cannot create a fillable PDF. You would need to automate Adobe Acrobat Pro for that.

Cheers
Paul Edstein
[MS MVP - Word]
 
I was afraid that was going to be the answer.

Thanks for your response!!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top