How to Run an Acrobat Action with VBA from Microsoft Access
Question details
The user is attempting to execute a predefined Adobe Acrobat Action using VBA code from Microsoft Access.

- Product
- Adobe Acrobat and Microsoft Access
- Device & OS
- not provided
- Scenario
- Automating PDF document processing workflows by triggering an Acrobat Action directly from an Access database via VBA.
- Observed behavior
- Adobe Acrobat Actions cannot be launched directly through VBA because the Acrobat SDK does not expose a command for executing an Action.
Ensure you have access to the Adobe Acrobat SDK documentation, and confirm that your environment allows both Microsoft Access and Acrobat to run in the foreground.
Recreate the Action Steps using Custom VBA or SDK
Since direct execution of Actions isn't supported, you must script the individual operations that make up the Action using the Acrobat API.
The Adobe Acrobat SDK does not expose a direct method to trigger predefined 'Actions' via VBA. To achieve the desired result, you need to manually script the underlying tasks using the Acrobat API.
Keep in mind that both Microsoft Access and Acrobat must run in the foreground for this automation to work. Server-side automation is not supported and may lead to unstable execution.
In Microsoft Access, press ALT + F11 on your keyboard to open the VBA integrated development environment.
Navigate to Tools > References in the top menu of the VBA editor, then locate and check the box for the Adobe Acrobat Type Library to load the necessary API objects.
Write VBA code utilizing the AcroApp and AcroAVDoc objects to perform your specific document operations (such as extracting pages, adding watermarks, or saving files) sequentially instead of attempting to call the Action.

Looking for a Seamless and Lightweight PDF & Office Solution?
WPS Office is a free, lightweight Microsoft Office alternative that offers a familiar user interface, making seamless migration easier than ever. It provides robust document editing and a built-in PDF toolkit without the heavy system requirements.
- 1. Download the Installer: Visit the official WPS website and download the free WPS Office setup file.
- 2. Install WPS Office: Run the downloaded installer and follow the simple on-screen instructions to set up the suite.
- 3. Open Your Files: Launch WPS Office and directly open your existing Office documents or PDFs with full format compatibility.

Frequently Asked Questions
Why can't I trigger an Acrobat Action directly from VBA?
The Adobe Acrobat SDK is designed to manipulate document elements programmatically but does not expose a specific API command or method to trigger macro-like predefined 'Actions' from external tools.
Can I run this VBA PDF automation on a Windows Server?
No, Acrobat SDK automation requires the application to run in the foreground. Automating Acrobat processes on a server without an active user session is unsupported and restricted.
What objects do I need to manipulate PDFs in Access VBA?
You typically need to initialize the AcroApp, AcroAVDoc (for viewing), and AcroPDDoc (for document-level processing) objects from the Acrobat SDK within your VBA script.




