Language.DefaultWritingStyle property (Word)
Returns or sets the default writing style used by the grammar checker for the specified language. Read/write String.
Syntax
expression. DefaultWritingStyle
expression A variable that represents a 'Language' object.
Remarks
This property controls the global setting for the writing style. The name of the writing style is the localized name for the specified language. When setting this property, you must use the exact name found in the Writing style box on the Spelling & Grammar tab in the Options dialog box (Tools menu).
The ActiveWritingStyle property sets the writing style for each language in a document. The ActiveWritingStyle setting overrides the DefaultWritingStyle setting.
Example
This example returns the default writing style in a message box.
Dim lngLanguage As Long
lngLanguage = Selection.LanguageID
Msgbox Languages(lngLanguage).DefaultWritingStyle
This example sets the writing style for U.S. English to Casual, and then it checks spelling and grammar in the active document.
Languages(wdEnglishUS).DefaultWritingStyle = "Casual"
ActiveDocument.CheckGrammar
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