Other PDF Issues

How to Run an Acrobat Action with VBA from Microsoft Access

Rana GarciaRana Garcia Nov 5, 2026 869 views

Question details

The user is attempting to execute a predefined Adobe Acrobat Action using VBA code from Microsoft Access.

How to Run an Acrobat Action with VBA 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.
Before you start

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.

Solution 1Recommended

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.

1
Access the VBA Editor

In Microsoft Access, press ALT + F11 on your keyboard to open the VBA integrated development environment.

2
Enable Acrobat References

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.

3
Program the Steps Manually

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.

Recreate the Action Steps using Custom VBA or SDK
Foreground Execution Required: Both applications must remain open and visible in the foreground. Do not use this method for unattended background server processing.
Free Microsoft Office alternative

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. 1. Download the Installer: Visit the official WPS website and download the free WPS Office setup file.
  2. 2. Install WPS Office: Run the downloaded installer and follow the simple on-screen instructions to set up the suite.
  3. 3. Open Your Files: Launch WPS Office and directly open your existing Office documents or PDFs with full format compatibility.
High format compatibility with Microsoft Word, Excel, PowerPoint, and PDF filesFamiliar UI that ensures a smooth and seamless migration for new usersLightweight application that runs fast and frees up system resourcesBuilt-in comprehensive PDF editing toolkit for daily document management
microsoft office alternative - wps office

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.