Word VBA >> Spelling and Grammer Options

by Ravi » Thu, 05 Aug 2004 13:19:38 GMT

Can anybody tell me how to change following Spelling and
Grammer options through VBA

Tools-->Options-->Spelling & Grammer
click "Settings" Tab under Grammer section
1. Comma required before last list item:
always|never|don't check
2. Punctuation required with quotes: inside|outside|don't
check
3. Space required between sentences: 1|2|don't check

and other Grammer and Style options

Thanks in advance

Regards

Ravi


Word VBA >> Spelling and Grammer Options

by Word Heretic » Thu, 05 Aug 2004 14:37:58 GMT


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:





Similar Threads

1. Spelling and Grammer Option Grayed out

2. Dictionary Language options disappears from Spelling and Grammer

Hi all, would like to seek help on this problem I had with my user.

He's using Windows XP with Office Xp. After doing office updates, the
Spelling and Grammer's Dictionary Language selection drop down box
disappeared. It's not grey out, it just vanish from the dialog box totally.
Everything else is where it should be.

Any ideas on how to solve this? Thanks a million!

-- 
Melvin Ho
 XXXX@XXXXX.COM 
Remove NOSPAM to email me



3. Spell Check and Grammer Options - Word Document management

4. Do not check spelling & grammer option

The option to not check spelling & grammer is 
automatically becoming enabled.  Has anybody else come 
across this problem?  Any suggestions?

Thanks!

5. No Spelling & Grammer Option W97

6. Spell check won't let me check spelling or grammer when I uncheck

My spell check isn't working, even if I intentionally make an error (ex. 
ldjflkdjfdlkf) it won't work.  I tried the Tools: Language: Set Language 
thing, and I unchecked the box  that says 'don't check spelling or grammer' 
and while it worked for about 1-2 words that I intentionally mispelled, when 
I start typing more mispelled words it does nothing!  And then, I will do the 
same tools: language thing and I have to uncheck the stupid box again!  How 
do I make this work?  Why all of the sudden is microsoft word 2003 acting 
like this?

7. Spell check will check my grammer but not my spelling - Word Document management

8. German Spelling & Grammer Checker

Where can I get a German Spelling & Grammer Checker?
Because i realy need one for my homework.
It would help my spelling & grammer loads!
Then I would know when i made silly mistakes!
PLEASE, PLEASE, PLEASE, make one!!!
My life's a living hell already, what with the corsework, etc., without 
detention from my teachers!!!