Collapse the table of content
Expand the table of content
Expand Minimize

Editor Format Tab (Options Dialog Box)

Office 2013 and later

Contribute to this content

Use GitHub to suggest and submit changes. See our guidelines for contributing to VBA documentation.


Specifies the appearance of your Visual Basic code.

Code Colors

Determines the foreground and background colors used for the type of text selected in the list box.

  • Color Text List — Lists the text items that have customizable colors.

  • Foreground — Specifies the foreground color for the text selected in the Color Text List.

  • Background — Specifies the background color for text selected in the Color Text List

  • Indicator — Specifies the margin indicator color.


Specifies the font used for all code.


Specifies the size of the font used for code.

Margin Indicator Bar

Makes the margin indicator bar visible or invisible.


Displays sample text for the font, size, and color settings.

© 2016 Microsoft