AnsweredAssumed Answered

Visual Basic for Applications Dark Mode for SolidWorks?

Question asked by Keaton Warn on Apr 30, 2019
Latest reply on May 6, 2019 by Keaton Warn

Is there an effective way to customize the environment colors in the VB for Applications window used by SolidWorks?

 

I am aware that by going under Tools → Options → Editor Format allows you to change colors but the colors themselves are very limited.

 

To try to fix this, I followed this guide to hex edit the VBE7.DLL file to get colors I like.

github.com/dimitropoulos/VBECustomColors

My VBE7.DLL file is located in:

C:\Program Files (x86)\Microsoft Office\root\VFS\ProgramFilesCommonX86\Microsoft Shared\VBA\VBA7.1

 

If I go into Excel to create a VBA macro, I can see that the VBE7.DLL hex edit was successful (this is with some manual adjustments to the text/background colors, but the point is that the colors I want show up in the drop down menu):

 

However, in SolidWorks, the colors are not quite what I want (note the drop down menu):

 

I also see that the Options box is different from Excel (first pic) and SW (second pic):

 

Do they not share the VBE7.DLL file? They both show:

Excel:

SW:

Outcomes