G
GordonM
I raised this question on 4 July, but I would like to describe the situation
more completely in the hope that I may receive more replies ... nothing has
been suggested in the earlier thread in several days.
I am trying to allow spellchecking in a document that includes protected and
unprotected sections. This document was originally created as a .doc file.
I have looked at the macro in
http://word.mvps.org/FAQs/MacrosVBA/SpellcheckProtectDoc.htm and tried the
example at the end of the article. This example works in my Word 2003,
checking spelling in both protected and unprotected sections. BTW, I note
that the article says:
3. To make it seamless to the user, you could assign your macro to a
toolbar button, and to a menu button on the Tools menu , replacing the
existing spellchecking buttons with yours.
I don't understand why this would be needed, as the normal Tools/Spelling
and Grammar option works just fine for this example.
The steps I have taken with my document are as follows:
1. I have opened my .doc document, setting it as unprotected.
2. I have created a new macro, pasting in the macro code from the MVP article.
3. I have returned to my document view and protected my document (for
filling-in forms)
4. I have noted that, if I place the cursor in an unprotected section,
Spelling and Grammar works.
5. If I place the cursor in a protected section, Spelling and Grammar is
greyed out ... so I cannot spell check the protected sections. This is
different to what happens for the MVP example file.
Note that, after applying the macro, I have also tried saving my document as
a .dot file and then opening it (double-clicking in Explorer) in the same way
as for the MVP example file. There is no difference in the behaviour, I
still cannot spellcheck the protected sections.
I don't understand why the example file works, but mine does not.
My apologies for what may be a duplicate post, but I am just running out of
ideas to solve this problem.
Thank you
Gordon
more completely in the hope that I may receive more replies ... nothing has
been suggested in the earlier thread in several days.
I am trying to allow spellchecking in a document that includes protected and
unprotected sections. This document was originally created as a .doc file.
I have looked at the macro in
http://word.mvps.org/FAQs/MacrosVBA/SpellcheckProtectDoc.htm and tried the
example at the end of the article. This example works in my Word 2003,
checking spelling in both protected and unprotected sections. BTW, I note
that the article says:
3. To make it seamless to the user, you could assign your macro to a
toolbar button, and to a menu button on the Tools menu , replacing the
existing spellchecking buttons with yours.
I don't understand why this would be needed, as the normal Tools/Spelling
and Grammar option works just fine for this example.
The steps I have taken with my document are as follows:
1. I have opened my .doc document, setting it as unprotected.
2. I have created a new macro, pasting in the macro code from the MVP article.
3. I have returned to my document view and protected my document (for
filling-in forms)
4. I have noted that, if I place the cursor in an unprotected section,
Spelling and Grammar works.
5. If I place the cursor in a protected section, Spelling and Grammar is
greyed out ... so I cannot spell check the protected sections. This is
different to what happens for the MVP example file.
Note that, after applying the macro, I have also tried saving my document as
a .dot file and then opening it (double-clicking in Explorer) in the same way
as for the MVP example file. There is no difference in the behaviour, I
still cannot spellcheck the protected sections.
I don't understand why the example file works, but mine does not.
My apologies for what may be a duplicate post, but I am just running out of
ideas to solve this problem.
Thank you
Gordon