VBA - Creating Styles


Styles.Add Method

Use the Add method to create a new user-defined style and add it to the Styles collection.



Paragragh Styles

This example creates a new paragraph style called "New Paragraph Style 1"



Character Styles

This example creates a new character style called "New Character Style 1"




Styles based on existing styles

A style can be based on another style



A Style object includes the following attributes:

  • Font

  • Paragraph

  • Tabs

  • Borders

  • Language

  • Frame

  • Numbering

  • Shortcut Keys



© 2026 Better Solutions Limited. All Rights Reserved. © 2026 Better Solutions Limited TopPrevNext