Built In Dialogs

S

Sheri

I have created a macro for spelling and grammar, and replaced the button on
the toolbar and the tools menu with my macro for the users in my office.
Basically, the macro performs the Recheck Document command (in Tools,
Options, Spelling and Grammar), then displays the Spelling and Grammar dialog
box. Here is the problem, now the user's cannot click back into the document
while spellcheck is running, but before, using spelling and grammar
(natively), you can. Is there a command that I can put in my macro that will
allow user's to do this? I think that it has something to do with SetFocus,
but I can't find anything in Help. See below for a copy of the code.

Application.ResetIgnoreAll
ActiveDocument.SpellingChecked = False
ActiveDocument.GrammarChecked = False
With Dialogs(wdDialogToolsSpellingAndGrammar)
.Show
End With
MsgBox "Spellcheck Complete"

ActiveWindow.ActivePane.View.SeekView = wdSeekMainDocument

Thank you!
 
J

Jean-Guy Marcil

Sheri was telling us:
Sheri nous racontait que :
I have created a macro for spelling and grammar, and replaced the
button on the toolbar and the tools menu with my macro for the users
in my office. Basically, the macro performs the Recheck Document
command (in Tools, Options, Spelling and Grammar), then displays the
Spelling and Grammar dialog box. Here is the problem, now the user's
cannot click back into the document while spellcheck is running, but
before, using spelling and grammar (natively), you can. Is there a
command that I can put in my macro that will allow user's to do this?
I think that it has something to do with SetFocus, but I can't find
anything in Help. See below for a copy of the code.

Application.ResetIgnoreAll
ActiveDocument.SpellingChecked = False
ActiveDocument.GrammarChecked = False
With Dialogs(wdDialogToolsSpellingAndGrammar)
.Show
End With
MsgBox "Spellcheck Complete"

ActiveWindow.ActivePane.View.SeekView = wdSeekMainDocument

As long as the macro runs, you cannot access the document itself.

Why is it important to access the document during the spell check? All
changes can be made from the spell check dialog.

--
Salut!
_______________________________________
Jean-Guy Marcil - Word MVP
(e-mail address removed)
Word MVP site: http://www.word.mvps.org
 
S

Sheri

Personally, I don't think it is important, but since they were able to do it
before, and now they can't, I get the call. I just wanted to make sure that
when they are told it cannot be done, It really cannot be done! Thank you
for your help : )
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top