Skip to content

Licensing System

VBA Padlock provides a modern, robust Licensing System that transforms your Excel workbooks or Access databases into commercial software. From simple product keys to complex hardware-locked subscriptions, you have total control over how users access your specialized logic.

Client activation dialog


Different business models require different types of protection. Choose the one that fits your distribution strategy:

A permanent license with no restrictions. Once correctly activated, the application works indefinitely on the user’s machine.

  • No expiration dates.
  • Optionally hardware-locked.
  • Perfect for “standard” one-time purchase software.

VBA Padlock supports two distinct key architectures. We recommend Long Keys for maximum cryptographic security.

Short Keys (HMAC)

35 Characters

  • Pros: Easy to type, fits in standard emails.
  • Best for: Simple hardware locking and expiration dates.
  • Format: XXXXX-XXXXX-XXXXX-XXXXX-XXXXX-XXXXX-XXXXX

Long Keys (ECC Ed25519)

160+ Characters

  • Pros: Maximum security, uses modern elliptic curve signatures.
  • Best for: Online Activation, run-limited trials, and tamper-resistance.
  • Format: Digital signature block (copy-paste only).

Setting up licensing is a two-step process in VBA Padlock Studio.

  1. Enable Activation: In Activation Settings, check the “Activation Key is required” option.
  2. Generate Master Key: Go to Advanced Activation Settings to generate your unique encryption keys. These ensure that only you can generate valid keys for your project.

Verify the license status directly within your code to protect specific macros or features.

VBA Bridge Example

' Check if the application is fully licensed
If VBAPL_IsLicenseValid() Then
' Run proprietary logic
ElseIf VBAPL_IsTrialMode() Then
MsgBox "Trial: " & VBAPL_GetTrialLimitLeft() & " days left."
Else
MsgBox "Please activate your license."
End If

Where should the license be stored once the user activates it?

  • Registry (Default): Best for standard Windows installations. Keys are stored in HKEY_CURRENT_USER.
  • Portable (.LIC file): Use this for USB-based applications or environments where users don’t have registry write permissions. Enable this via Portable Mode.

Hardware Locking

Bind your license keys to specific computers to prevent sharing. Learn more →