License keys and trials for Excel add-ins and VBA files.

If you sell an Excel add-in or a macro workbook, a license check has nowhere to live: there is no server in a .xlsm file. LicensePier for Office gives you the check as a small file you add to your project, plus the keys, the free trial and the refunds behind it. It is included in every LicensePier plan, the Free plan too.

The Free plan needs no card: 1 product and 250 active licenses.

VBA, VSTO, .NET, Office.js Checks work offline Email-gated trials Your own Stripe

The problem

A VBA workbook or an Office add-in is a file or a small program on your customer's PC. To sell it you need license keys, a free trial, a limit of one key per computer, and a way to switch a key off after a refund. None of that is Excel, and none of it is the product you set out to build.

LicensePier for Office does that part. You sell through your own Stripe account as before; the kit asks LicensePier whether the key is good.

What the kit does

The same keys, trials and refunds as any LicensePier product, from inside your add-in.

License keys

Your customer enters the key from the purchase email. The license is remembered on that PC, and the same key works in whichever kit you ship.

Email-required free trial

The trial asks for an email address, one trial per address and product, enforced by the server. You download the trial emails as a CSV in the dashboard.

Signed checks, offline

The server signs a license for each computer with your product's private key. Your code holds only the public key and checks the signature offline at every start. The server is asked again every 7 days by default, and the license keeps working offline for up to 30 days by default.

Refunds switch a key off

A refund or cancellation in your Stripe account turns the key off in LicensePier, and the add-in clears the license at its next check with the server.

One key, a set number of computers

You choose how many computers one key may run on. The dashboard shows the computers per key, and you can free one when a customer replaces a PC. The computer id is a hash; the raw Windows id never leaves the PC.

Same dashboard

Keys, computers, trials and Stripe events are in the LicensePier dashboard you already use. The product page there has your product key and public signing key ready to paste.

Four kits, one account

All four are free files, included in every plan. Sellers download them from their product page in the LicensePier dashboard.

Kit For What you add
VBA Excel, Word, PowerPoint, Access and Outlook macros and .xlam add-ins, on Windows One module, LicensePierOffice.bas, plus a sample workbook. No reference to add and no DLL to install.
C# for VSTO VSTO add-ins on .NET Framework 4.8 One file, LicensePierLite.cs, with no packages.
Modern .NET COM add-ins and Excel-DNA add-ins on .NET 10 or 11 A buildable sample that uses the same SGU licensing packages as any LicensePier app.
JavaScript Office.js web add-ins for Excel, Word, Outlook and PowerPoint One file, licensepier-office.js, plus a sample task pane.

VBA in 10 minutes

Create your product and connect Stripe in the dashboard first. Then, in your workbook:

  1. In the VBA editor choose File > Import File and import LicensePierOffice.bas.
  2. Open the module and replace everything between the LICENSEPIER CONFIG BEGIN and END lines with the VBA block from your product page, which already holds your product key and public key.
  3. Run LP_SelfTest once (F5). It must say OK: it shows the Windows crypto calls work on that PC and prints the machine id.
  4. Add the check where your paid features start. For example, in ThisWorkbook:
Private Sub Workbook_Open()
    If Not LP_Check() Then Application.StatusBar = "Not licensed - free features only"
End Sub

' and at the start of each paid macro:
' If Not LP_Check() Then Exit Sub
  1. Done. Your customer sees a dialog to enter a key or start the free trial (the trial asks for an email address). After that the license is remembered and checked at every start without the internet.

LP_Check shows the activation dialogs when needed; LP_IsLicensed is a silent check with no network. LP_Status and LP_DaysLeft give text for an About box. The kit comes with a guide that lists every call and setting.

Honest limits

  • It is not tamper-proof. The check runs on your customer's PC, by code you ship. VBA can be unprotected or patched, and .NET and JavaScript can be decompiled. The kit stops casual copying and key sharing, and it makes refunds and revoked keys count; it does not stop a determined cracker. Protect the VBA project with a password, obfuscate .NET, and keep valuable logic on your own server if it matters.
  • What was tested. The VBA module was run in real Microsoft Excel (Microsoft 365 Apps, 64-bit) on 2026-11-30: compile, the self-test, free trial, key activation, wrong and tampered keys, a key already used on another PC, refund, an expired key, a clock set back, the 30-day offline limit and the second server address when the first is down. Not tested: 32-bit Office (the code is written for it but was never run), Word, PowerPoint, Access and Outlook VBA (the module is the same, only Excel was run), Office versions older than Microsoft 365, and the dialogs answered by a person.
  • The other kits. The C# client runs against a running copy of the LicensePier server in automated tests. The JavaScript kit's checks ran in a browser (Edge) against real license tokens, not yet against a running server from a browser add-in. The .NET samples were built but not clicked through.
  • Platforms. VBA, VSTO and COM add-ins are for Windows. Office for Mac VBA is not supported. Office.js add-ins run wherever Office.js runs.
  • Your customers' privacy. LicensePier sees your product key, the license key or trial email, a hashed computer id, the computer name (you can switch that off) and the add-in version. Tell your customers; your privacy policy is yours.

Questions

Short answers to the things people ask first.

Can the license check work offline?

Yes. The license is a signed token that your code checks with your public key, without the internet, at every start. The kit asks the server again every 7 days by default (a setting you can change) and keeps working offline for up to 30 days by default, then asks the user to connect.

What happens on a refund?

A refund or cancellation in your Stripe account turns the key off in LicensePier. At its next check with the server the add-in clears the license and asks the user to activate again. Offline, it keeps working until the offline limit.

Does it work with 32-bit and 64-bit Office?

The VBA module is written for both, and it needs no reference and no DLL. It has been run in 64-bit Excel (Microsoft 365) only; 32-bit Office was not tested. Run LP_SelfTest on a machine first and tell us if anything fails.

Does it work in Word, PowerPoint, Access or Outlook?

The module is the same VBA, but only Excel was run. Word, PowerPoint, Access and Outlook VBA were not tested. Office.js and .NET add-ins for those programs use the other kits.

Does it work on a Mac?

Not for VBA: Office for Mac VBA is not supported. An Office.js web add-in runs wherever Office.js runs.

How are the keys protected?

The server signs each computer's license with your product's private key, and your code holds only the public key, which cannot create licenses. Any key the server sends is ignored: only the keys pinned in your code count. This stops a made-up license, but the check runs on your customer's PC and can be patched by a determined person, so it is not tamper-proof.

Does it cost extra?

No. The kits are included in every LicensePier plan, the Free plan too (1 product, 250 active licenses). Plans are on the LicensePier page.

Do I need my own Stripe account?

Yes: buyers pay you in your own Stripe account, and LicensePier reads the purchase events and emails the key. Paddle, PayPal and FastSpring are also supported as a beta.

LicensePier also covers Windows and .NET apps. See LicensePier for the plans and how it works, or Products & Services for everything from Solutions Group Unlimited.

Put a license check in your add-in this afternoon.

Free plan, no card needed. The Office kits are included in every plan.

See LicensePier's privacy policy and terms.

An unhandled error has occurred. 🗙