Skip navigation
gapsys
Currently Being Moderated

Need help with VBA to control PDF fields

May 11, 2011 2:20 PM

Hi,

I am attempting to use Excel VBA to control Acrobat but cannot find any documentation on the syntax to modify fields within the PDF form.

 

I am able to commnicate with Acrobat using CreateObject ( "AcroExch.App") and point to the AVDocs, PDDocs, PDPage objects.

However, I cannot find any methods that would allow me to change fields on the PDF.

 

I am attempting something very similar to a mail merge where I

  • Open a template PDF document
  • Populate the LastName, First Name fields
  • Then lock (make fields ReadOnly) the above so the User cannot modify them
  • Then save the PDF with the prefixed Lastname & First Name.

 

The template PDF form is created in LiveCycle Designer & is a fillable PDF. It can be filled in Adobe Reader.

Am using Office 2007 Excel with the corresponding VBA - The VB code has a Reference to Adobe Acrobat 9.0 Type library.

 

Thanks

 
Replies

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points