VBA - Acrobat DC Pro - AFormAut - PopulateListOrComboBox
Hi,
I'm trying to fill a combobox with wsh (or vba).
I get an error "Invalid arguments" when calling PopulateListOrComboBox.
Can you help for the correct syntax ?
I tried with 1 or 2 arguments.
Ex code:
Sub Test()
Dim oAcrobat
Dim oAVDoc
Dim oForm
Dim arr
Dim arr2
Dim oField
Set oAcrobat = CreateObject("AcroExch.App")
Set oAVDoc = CreateObject("AcroExch.AVDoc")
Set oForm = CreateObject("AFormAut.App")
oAVDoc.Open "C:\Dev\KExtAcrobat\ak.pdf", "ak.pdf"
arr = Array("1", "2")
arr2 = Array("1", "2")
Set oField = oForm.Fields.Item("Dropdown1")
oField.PopulateListOrComboBox arr, arr2
Set oField = Nothing
Set oAcrobat = Nothing
Set oAVDoc = Nothing
Set oForm = Nothing
End Sub
