Skip to main content
  1. Blog/

Convert VBA Editor to Dark Theme

·1 min

So there I was, trying to find best color combination for making my VBA editor in dark theme. While I did find an open source utility on GitHub to hack the VBE.dll and then replace it in the system, I simply wanted to know a color combination that I can quickly set in the built in VBA color palette editor so that I can make the editor dark.

So I made this guide for myself to do just that, a quick 2 min will give you dark theme!

To set these, in the VBA editor, goto Tools -> Options -> Editor Format. Then refer below table to set the colors.

Now set the colors to below:

FieldForegroundBackground
Normal TextWhiteBlack
Comment TextDark GreyBlack
Keyword TextLight GreenBlack
Identifier TextSky BlueBlack
Bookmark TextDark GreenBlack
Call Return TextBlueBlack

And there, in 2 min now your VBA editor looks something like below. You can tweak it to your liking.

Final result