VBA editor colors -- strings?

J

John Uebersax

Is there a way to make text strings appear in a given color in the VBA
editor?

For example, in the line:

sFile = "C:/data.txt"

I'd like C:/data.text to appear in red.

Using VBA menu commands: Tools / Options / Editor Format

one can assign foreground/background colors to various elements -- but
I don't see literal text strings like this among them.

Thanks in advance for any suggestions.

John Uebersax
 
J

John Uebersax

Hi Cindy,
Working in a more "modern" IDE ...

Thanks for the helpful clue.

I got the idea of color-coding text strings by looking at someone
else's VBA code. Now I think they probably prepared that code using a
customizable program editor, and not the VBA editor ;)

John Uebersax
Brussels
satyagraha.wordpress.com
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top