Style.NameLocal property (Word)
Returns the name of a built-in style in the language of the user. Read/write String.
Syntax
expression.NameLocal
expression Required. A variable that represents a 'Style' object.
Remarks
Setting this property renames a user-defined style or adds an alias to a built-in style.
Example
This example displays the style name (in the language of the user) applied to the selected paragraphs. If more than one style has been applied to the selection, the first style name is displayed.
MsgBox Selection.Paragraphs.Style.NameLocal
This example adds the name "MyH1" as the alias for the Heading 1 style in the active document.
ActiveDocument.Styles("Heading 1").NameLocal = "MyH1"
This example renames the style named "Test" to "Intro."
ActiveDocument.Styles("Test").NameLocal = "Intro"
See also
Support and feedback
Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for