I have created a form in word and have locked it so that
the user can only change the fileds and not the field
headings.

I have a text field which is about 200 chars of free text
and i want the user to be able to spell check it after
they have typed it. I created a command button and
allocated it the following code -

"Application.ResetIgnoreAll
ActiveDocument.SpellingChecked = False
ActiveDocument.CheckSpelling"

Which i got from VB Help. The problem is the code stops as
the form is protected. How can i get around this. Really i
would just like the spell check to be on the one text
field not the entire form as well.

I am using Word 2000 and Visual Basic 6.0

Re: Spell Checking a Protected Document by Graham

Graham
Tue Aug 12 05:50:16 CDT 2003

See http://www.mvps.org/word/FAQs/MacrosVBA/SpellcheckProtectDoc.htm

--
<>>< ><<> ><<> <>>< ><<> <>>< <>>< ><<>
Graham Mayor - Word MVP
E-mail gmayor@mvps.org
Web site www.gmayor.dsl.pipex.com
Word MVP web site www.mvps.org/word
<>>< ><<> ><<> <>>< ><<> <>>< <>>< ><<>


Danny Sowden wrote:
> I have created a form in word and have locked it so that
> the user can only change the fileds and not the field
> headings.
>
> I have a text field which is about 200 chars of free text
> and i want the user to be able to spell check it after
> they have typed it. I created a command button and
> allocated it the following code -
>
> "Application.ResetIgnoreAll
> ActiveDocument.SpellingChecked = False
> ActiveDocument.CheckSpelling"
>
> Which i got from VB Help. The problem is the code stops as
> the form is protected. How can i get around this. Really i
> would just like the spell check to be on the one text
> field not the entire form as well.
>
> I am using Word 2000 and Visual Basic 6.0



Re: Spell Checking a Protected Document by Danny

Danny
Tue Aug 12 06:50:19 CDT 2003

Thanks for this, have managed to get this bit working, but
have now found a new problem.

Is there a way similar to how you have simulated
Spellcheck to do the same for basic text formatting such
as bold, italic and underline?

I would like to get the users to format their own text
within a certain field, but whilst keeping protection
turned on.

Any ideas or places where i should look?

>-----Original Message-----
>See
http://www.mvps.org/word/FAQs/MacrosVBA/SpellcheckProtectDo
c.htm
>
>--
><>>< ><<> ><<> <>>< ><<> <>>< <>>< ><<>
> Graham Mayor - Word MVP
> E-mail gmayor@mvps.org
> Web site www.gmayor.dsl.pipex.com
> Word MVP web site www.mvps.org/word
><>>< ><<> ><<> <>>< ><<> <>>< <>>< ><<>
>
>
>Danny Sowden wrote:
>> I have created a form in word and have locked it so that
>> the user can only change the fileds and not the field
>> headings.
>>
>> I have a text field which is about 200 chars of free
text
>> and i want the user to be able to spell check it after
>> they have typed it. I created a command button and
>> allocated it the following code -
>>
>> "Application.ResetIgnoreAll
>> ActiveDocument.SpellingChecked = False
>> ActiveDocument.CheckSpelling"
>>
>> Which i got from VB Help. The problem is the code stops
as
>> the form is protected. How can i get around this.
Really i
>> would just like the spell check to be on the one text
>> field not the entire form as well.
>>
>> I am using Word 2000 and Visual Basic 6.0
>
>
>.
>