Skip to content

VBA Bridge

The VBA Bridge is safe, robust, and automated. It generates the VBAPadlockBridge module, a specialized piece of VBA code that allows Microsoft Excel, Word, PowerPoint, or Access to securely load and interact with your protected DLL.

The VBA Bridge module view in VBA Padlock Studio


The generated module is complex under the hood, but simple to use. It handles all technical plumbing so you can focus on your code:

  • Dual Architecture Support: Automatically generates both 32-bit and 64-bit API declarations, with PtrSafe support for 64-bit Office, ensuring seamless compatibility across Office versions.
  • Secure Initialization: Includes logic to safely locate and bind to your satellite DLLs, preventing “DLL not found” errors.
  • The VBAPL_* API: Provides 20 high-level functions for core tasks like code execution, license validation, and online activation.

VBA Padlock Studio offers multiple ways to get the bridge code into your Office document:

  1. Direct Injection (Recommended): Click Inject Into Office to have the Studio automatically open your document and insert/update the module for you.
  2. Module Export: Export the code as a standard .bas file for manual import into complex projects.
  3. Clipboard Sync: Quickly copy the entire module source to manually paste it into the VBA Editor (Alt + F11).

  1. Configure: Finalize your settings in Project Info, particularly the Security Code.
  2. Generate: Open the VBA Bridge workspace to see the customized code for your project.
  3. Inject: Click the Inject Into Office button for the most automated experience.
  4. Confirm: Open your Office file’s VBA Editor and verify that the VBAPadlockBridge module is present and valid.

The VBAPadlockBridge module as seen in the VBA Editor