Share via


NameLocal Property

NameLocal property as it applies to the Language object.

Returns the name of a proofing tool language in the language of the user. Read-only String.

expression.NameLocal

expression Required. An expression that returns a Language object.

NameLocal property as it applies to the Style object.

Returns the name of a built-in style in the language of the user. Setting this property renames a user-defined style or adds an alias to a built-in style. Read/write String.

expression.NameLocal

expression Required. An expression that returns a Style object.

Example

As it applies to the Language object.

This example displays the name of the German language two different ways — first in the language of the user, and then in German.

MsgBox Languages(wdGerman).NameLocal
MsgBox Languages(wdGerman).Name

As it applies to the Style object.

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"

Applies to | Language Object | Style Object

See Also | Name Property