G'day "Ravi" < XXXX@XXXXX.COM >,
All you can do is change between settings for
ActiveDocument.ActiveWritingStyle
eg Technical, Standard and so on.
Otherwise you have to resort to send keys :-( This example just sets
comma required before last list item to never.
Sub GrammarOptions()
SendKeys "%t" 'load the grammar settings
SendKeys "{TAB}" 'enter the settings area
SendKeys "{DOWN}" 'move to first line
SendKeys "{DOWN}" 'move to Comma Required
SendKeys " " 'select dropdown
SendKeys "{DOWN}" 'Select ALWAYS
SendKeys "{DOWN}" 'Select NEVER
SendKeys "{ENTER}" 'Exit dropdown, save changes
'Add extra settings in here
SendKeys "{TAB}" 'Select OK
SendKeys "{ENTER}" 'Save grammar changes
SendKeys "{ENTER}" 'Save Options changes
Dialogs(wdDialogToolsOptionsSpellingAndGrammar).Show
End Sub
Steve Hudson - Word Heretic
Want a hyperlinked index? S/W R&D? See WordHeretic.com
steve from wordheretic.com (Email replies require payment)
Ravi reckoned: