Skip to content

Compile Project & Syntax Check

Two commands keep your inner loop fast. Compile Project (F5) transforms your scripts into encrypted bytecode and rebuilds the satellite DLLs, with hot reload, so a running Excel picks up the new build without restarting. Syntax Check answers the question “what would move to the DLL?” without building anything at all. Both live in the Protect tab (and in the Edit Script tab’s Compile & Test group).


A successful compilation is the prerequisite for producing and publishing.

  1. Parsing: VBA Padlock Studio reads all .bas and .cls modules and checks for syntax compatibility.
  2. Analysis: The engine performs semantic checks to ensure functions, variables, and References are correctly resolved.
  3. Bytecode Generation: Valid code is transformed into highly secure, encrypted bytecode.
  4. DLL Build: The satellite DLLs are rebuilt in place, ready for Test Run or a quick check with Run DLL Function.

Syntax Check runs the same per-procedure analysis as the Protection Review, but reports to the Messages panel; no DLLs are written. The summary line reads:

Compile check: 12 -> DLL, 3 stay in VBA.

Individual lines explain each kept procedure:

  • Info (expected behavior): <Proc> stays in VBA - uses the VBA Padlock bridge API (by design), or a driver routine kept because it orchestrates bridge-bound procedures.
  • Warning (something you may want to fix): <Proc> stays in VBA - shared module-level state 'Counter', or Module does not compile - <reason>.

Use it as a fast pre-flight before Produce, especially after editing code or changing References.


The Messages panel at the bottom of the interface acts as your real-time diagnostic center:

  • Success (Green): Your project is secure and ready for testing.
  • Errors (Red): Critical syntax or logic issues that prevent bytecode generation.
  • Warnings (Yellow): Procedures kept in VBA, or potential runtime issues you should review.

Successful compilation message and build logs


KeyAction
F5Compile Project: Rebuild all modules from source.
Ctrl+F5Test Run: Produce the protected file and open it in Office.
Shift+F8Run Current Sub/Function: Execute the routine under the cursor.