Other PDF Issues

How to Fix SendKeys ENTER and Plus Keys in Acrobat VBA Automation

Algirdas JasaitisAlgirdas Jasaitis Nov 10, 2026 869 views

Question details

The user needs a reliable way to automate Adobe Acrobat form filling using Excel VBA, as the SendKeys commands for the Enter and Plus keys are failing to execute.

How to Fix SendKeys ENTER and Plus Keys in Acrobat VBA Automation
Product
Adobe Acrobat / Excel VBA
Device & OS
not provided
Scenario
Automating Adobe Acrobat form filling via Excel VBA macros.
Observed behavior
SendKeys commands for the Enter and Plus keys are ignored or fail to work during Acrobat automation, making keyboard simulation unreliable.
Before you start

Ensure you have the Adobe Acrobat SDK documentation accessible and verify that your system has a version of Acrobat installed that supports the Interapplication Communication (IAC) API.

Solution 1Recommended

Use Acrobat's IAC API Instead of SendKeys

Replace unreliable keyboard simulations (SendKeys) with Acrobat's officially supported Interapplication Communication (IAC) API for precise document and form field manipulation.

SendKeys relies on the target application maintaining active window focus and specific keyboard states, making it highly unreliable for automated background tasks in Adobe Acrobat. Some keystrokes like Enter or Plus are often intercepted or ignored by the PDF interface.

The Acrobat SDK provides the IAC API, which allows external applications like Excel VBA to securely interact with Acrobat objects, retrieve form fields, and set values directly without needing to simulate physical keystrokes.

1
Reference the Acrobat API in VBA

Open your Excel VBA editor. Go to 'Tools' > 'References' in the top menu, then locate and check the box for 'Acrobat' or 'Adobe Acrobat Type Library' to enable the necessary objects.

2
Initialize the App Object

Create an instance of the Acrobat application in your VBA script using the command `CreateObject("AcroExch.App")`.

3
Access the PDF Document

Open your target PDF file using the `AcroExch.PDDoc` object. This connects your VBA script directly to the document structure.

4
Set Form Field Values via JavaScript Object

Instead of tabbing and sending keys, use the `GetJSObject` method to access Acrobat's JavaScript engine. You can then assign values directly to specific fields, for example: `jso.getField("FieldName").value = "Your Data"`.

Use Acrobat's IAC API Instead of SendKeys
SDK Documentation: Consult the official Adobe Acrobat SDK documentation for a comprehensive list of JS API methods and object properties required to manipulate specific PDF form configurations.
Free Microsoft Office alternative

Try WPS Office for Seamless PDF and Spreadsheet Workflows

If complex Excel VBA scripts and unreliable external automation are slowing down your productivity, consider switching to WPS Office. It provides a lightweight, highly compatible alternative to Microsoft Office, integrating a powerful Spreadsheet tool and a native PDF editor into one seamless platform.

  1. 1. Download and Install WPS Office: Visit the official WPS website to download the free suite. The installation process is quick and lightweight.
  2. 2. Open Your Excel Files: Easily open your existing .xlsx spreadsheets. WPS Spreadsheets provides high compatibility with your familiar formulas and layout.
  3. 3. Manage PDFs Natively: Use the integrated WPS PDF tool to open, fill out, and manage PDF forms directly, eliminating the need to script complex cross-application automations.
Highly compatible with Microsoft Excel (.xlsx) formats and standard VBA macros.Built-in robust PDF editor that simplifies form filling without needing external automation.Lightweight application footprint with an intuitive, all-in-one interface.Cost-effective solution that streamlines document and data management workflows.
microsoft office alternative - wps office

Frequently Asked Questions

Why does SendKeys fail with the Enter and Plus keys in Acrobat?

SendKeys simulates physical keystrokes and depends entirely on the target application having active focus. Acrobat often manages focus differently or overrides specific keystrokes like Enter or Plus for internal interface commands, causing these simulated inputs to be ignored or misdirected during automation.

Can I use SendKeys for other keystrokes in Acrobat VBA?

While basic alphanumeric keystrokes might occasionally work if the cursor is perfectly positioned, using SendKeys to automate Adobe Acrobat is generally unsupported and prone to breaking. It is highly recommended to use the IAC API for stable automation.

What is the IAC API in Adobe Acrobat?

The Interapplication Communication (IAC) API is an official set of objects and methods provided by the Acrobat SDK. It enables external applications, such as Excel via VBA, to programmatically interact with Acrobat to open documents, extract data, and fill form fields directly without relying on keyboard simulation.