Skip to main content
Inspiring
Sep 2, 2016 9:54 AM UTC
Question

VBA - Writing PDF Form Fields with VBA from EXCEL worksheet

Good evening,

I'm writing data from EXCEL to a PDF with formfields. NUMBERS are fine but STRINGS are not acceptet.

Dim AcroExchApp As Acrobat.CAcroApp

Dim AcroExchAVDoc As Acrobat.CAcroAVDoc

Dim AcroExchPDDoc As Acrobat.CAcroPDDoc

Set AcroExchApp = CreateObject("AcroExch.App")

Set AcroExchAVDoc = CreateObject("AcroExch.AVDoc")

Set jso = AcroExchPDDoc.GetJSObject

jso.getField("Text1").Value = text1

If text1 is "1" it works

If text1 is "ABC" I get the error '13'

Someone can help me on this topic ?

This topic is closed to new replies. Start a new post to keep the conversation going.

2 replies

Bernd Alheit
Community Expert
Community Expert
Sep 3, 2016 9:16 AM UTC

May be that the field accepts only numeric values.

Translate
Legend
Sep 2, 2016 1:15 PM UTC

Not entirely sure how this connects to Enterprise Deployment. Is this part of your deployment/install/update procedure?

Translate