Skip to content

Code Editor

The Code Editor is where your intellectual property takes shape. It is a full-featured MDI (Multiple Document Interface) workspace designed specifically for writing VBA code that runs within the secure environment of a compiled DLL.

Writing protected VBA code in the internal editor


Writing code in VBA Padlock Studio feels natural for any Office developer, but with the added benefit of compiled security.

  • VBA Syntax Highlighting: Keywords, strings, comments, and logic operators are color-coded for maximum readability.
  • Real-time IntelliSense: As you type, the editor suggests built-in VBA functions (DateAdd, Trim, etc.), constants, and project-specific variables.
  • Gutter Reference: Line numbers and error markers provide instant visual feedback on your code’s structure and health.

Your project is organized into .bas script files, which you can manage from the Project Explorer or the Ribbon.

  1. Main.bas: The mandatory entry point for every project. This is where your core logic usually resides.
  2. Modular Logic: You can add as many additional modules as needed to keep helper functions, constants, and business rules organized.
  3. Command Palette (F1): Access advanced editor commands, formatting tools, and quick search from a single search bar.

ShortcutAction
Ctrl + SSave — Save all open modules to the project folder.
Ctrl + F / HFind / Replace — Standard search tools within the active module.
Ctrl + Z / YUndo / Redo — Standard history operations.
F1Command Palette — Access all IDE commands.
Ctrl + SpaceIntelliSense — Force the code completion window to appear.

  • Error Line Highlighting: When a compilation error is detected, the editor automatically highlights the offending line in red so you can locate the problem at a glance. To edit the highlighted line or dismiss the marker after fixing the issue, right-click anywhere in the editor and select Clear Error Highlight from the context menu.
  • Extension Libraries: Full access to the built-in License Library for checking activation status and Hardware IDs directly from your code.