Hot Reloading
You don’t need to restart Excel! Every time you recompile, the DLL is updated in memory. Just switch back to your workbook and run your macro again to see the changes instantly.
This guide will take you from a standard Office file to a secure, compiled DLL solution in 7 simple steps.
Everything in VBA Padlock follows this logical sequence:
.xlsm or .accdb file.VBAPL_Execute.Launch & Open: Open VBA Padlock and click Open Office File. Select your macro-enabled file.

Project Setup: Enter your project name and version in the Project Info tab. This helps you keep track of your builds.

Secure Your Logic: Go to the Code Editor. This is where your intellectual property lives. Write your functions here using standard VBA syntax.
' Main.bas' This logic is compiled into the DLL and is no longer present in your Office file.Public Function CalculatePrice(basePrice As Double, discount As Double) As Double CalculatePrice = basePrice * (1 - discount / 100)End Function
Compile (F5): Click the Compile button. VBA Padlock transforms your code into bytecode.

Hot Reloading
You don’t need to restart Excel! Every time you recompile, the DLL is updated in memory. Just switch back to your workbook and run your macro again to see the changes instantly.
Inject the VBA Bridge: Click VBA Bridge → Inject Into Office. This adds a specialized module to your workbook that communicates with the DLL.


Call Your Code: In your Excel VBA editor (ALT+F11), call your compiled function using the bridge.
Sub RunProtectedCode() Dim result As Double ' Call your compiled function: "FunctionName", Arguments... result = VBAPL_Execute("CalculatePrice", 1000, 15) MsgBox "Final Price: " & resultEnd SubSuccess!:
Your code is now running from the DLL. If you look at your Excel VBA project, you’ll only see the bridge — your CalculatePrice logic is gone.
After compilation, your project folder will contain a bin/ directory. This is the heart of your application.
Excel Tutorial
A deep dive into protecting an Excel Workbook with advanced features. Read the guide →
Licensing Setup
Learn how to add trial periods and hardware locking to your build. Configure licensing →
VBA Bridge API
View the full list of VBAPL_* functions for advanced integration.
View API →
Compatibility
Check which VBA features and libraries are supported in the compiler. Check compatibility →