Skip to content

Code Editor

The Code Editor is where you inspect and refine the VBA that will be compiled into your protected DLL. In the automatic workflow, most of its content arrives by itself (extracted from your Office file during analysis), but every module remains fully editable, and hand-written modules are first-class citizens too.

Writing protected VBA code in the internal editor


The editor shows the compile gate’s decisions inline: per-procedure gutter and line badges indicate what moves to the DLL and what stays in VBA: the same verdicts as the Protection Review, visible while you type. Fix a blocker (say, add Option Explicit or restructure a shared variable), re-analyze, and watch the badge flip.


  • VBA Syntax Highlighting: Keywords, strings, comments, hex literals (&HFF), and $-suffixed functions are color-coded for maximum readability.
  • Real-time IntelliSense: As you type, the editor suggests built-in VBA functions (DateAdd, Trim, IIf, etc.), constants from your selected References, and project-specific symbols.
  • View options: Word wrap, minimap, and line numbers toggle from the Edit Script ribbon tab.

Your project stores standard modules (.bas) and class modules (.cls), managed from the Project Explorer’s Manage Scripts menu:

  • Add Blank Script / Add Class Module: create a new module by hand.
  • Import / Export Script: exchange .bas/.cls files with the VBA editor or version control.
  • Rename / Remove Script.
  • Lock from Re-analyze: protect a hand-tuned module from being overwritten by the next analysis (a padlock badge appears in the tree). If a locked module diverges from the host version, you choose Keep, Keep + Lock, or Overwrite, and a .bak backup is kept either way.

ShortcutAction
Ctrl + SSave All: 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.
Shift + F8Run Current Sub/Function: Execute the routine under the cursor.
F5Compile Project: Rebuild the satellite DLLs.
Ctrl + SpaceIntelliSense: Force the code completion window to appear.

The contextual Edit Script ribbon tab also offers a Compile & Test group: Syntax Check, Compile Project, Run Current Sub/Function, and Run DLL Function.


  • 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. Right-click and select Clear Error Highlight to dismiss the marker after fixing the issue.
  • Extension Libraries: Full access to the built-in License Library for checking activation status and Hardware IDs directly from your code.