Group: microsoft.public.word.vba.general
From: =?Utf-8?B?Um94eQ==?=
Date: Monday, April 07, 2008 11:34 AM
Subject: RE: Can't Spellcheck individual form fields in a protected form

Yes, when I tried the code from the MVP page I ran into trouble when I needed
to unprotect and then reprotect my document. Can you tell me exactly where
to insert into the code:
oDoc.Unprotect Password:="Password"

And:

oDoc.Protect Type:=wdAllowOnlyFormFields, NoReset:=True, _
Password:="Password"

This part I couldn't figure out and I was having a hard time.
Once I get this part to work, do I just leave the code in the doc itself or
do I need to put it as a 'run on exit' function in order to spellcheck one
form field at a time? Thanks so much again for all your help, I have been
just learning by trial and error so if I misspeak or don't make any sence
please forgive me.
~Roxy


"Jean-Guy Marcil" wrote:

> "Roxy" wrote:
>
> > Thank you but I have tried that numerous times and it doesn't work for me
> > either. Any other suggestions?
>
> The code on that page works. I have used it numerous times.
> Just so you know, in case you need to post a question again in the future,
> "it doesn't work " is totally unhelpful. We cannot help based on a statement
> like this.
>
> The code on the page I suggested covers all eventualities, your code doesn't.
> However, you may decide to use your own code, I have no problem with that.
>
> Did you at least look at the code on the page I suggested?
> Look for the the sub called:
> Private Sub CheckProtectedSection(oSection As Section)
> The answer to your original question is in there.
> As I wrote in my previous post, that page is complete...everything is there,
> you may have to read a bit though...
>
> Good luck.

Safety Articles | Usenet Groups | Usenet News | Bluegrass