How to Fix SendKeys ENTER and Plus Keys in Acrobat VBA Automation
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.

- 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.
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.
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.
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.
Create an instance of the Acrobat application in your VBA script using the command `CreateObject("AcroExch.App")`.
Open your target PDF file using the `AcroExch.PDDoc` object. This connects your VBA script directly to the document structure.
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"`.

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. Download and Install WPS Office: Visit the official WPS website to download the free suite. The installation process is quick and lightweight.
- 2. Open Your Excel Files: Easily open your existing .xlsx spreadsheets. WPS Spreadsheets provides high compatibility with your familiar formulas and layout.
- 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.

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.




