Spellchecking Bookmarks in Word

  • Thread starter Thread starter mjg8869
  • Start date Start date
M

mjg8869

I have searched the Microsoft web site over and every piece of literature I
can find and no where am I able to find an explanation why bookmarks are
apparently not a part of spellchecking a document. Could someone please
provide me with a source for the reason and a workaround if there is one.

Thanks.
 
mjg8869 said:
I have searched the Microsoft web site over and every piece of
literature I can find and no where am I able to find an explanation
why bookmarks are apparently not a part of spellchecking a document.
Could someone please provide me with a source for the reason and a
workaround if there is one.

Thanks.

You won't find it because bookmarks have no effect on spell checking.

Perhaps by "bookmarks" you really mean text form fields? In that case, see
http://www.word.mvps.org/FAQs/MacrosVBA/SpellcheckProtectDoc.htm for a
solution.

--
Regards,
Jay Freedman
Microsoft Word MVP
Email cannot be acknowledged; please post all follow-ups to the newsgroup so
all may benefit.
 
Thank you - but this didn't correct the misspellings in any of the Text Form
Fields (which appear in the bookmark list). Very frustrating. My users have
docs riddled with spelling errors because they were not caught on typing and
now they are unable to run spell check to find them all.
 
I did some further digging into this site and found an entry made by Graham
Mayor back in March of 20008 as shown below. A genius - it worked perfectly!

Subject: Re: add spellcheck in a locked form 3/11/2008 11:54 PM PST

By: Graham Mayor In: microsoft.public.word.docmanagement


If this is a simple form without separate sections in which you simply want
to check the field entries, you can simplify the code to the following -
adding your password between the quotes at the two locations indicated.

The error you are experiencing suggests you have not added the
CheckProtectedSection routine listed on the quoted page.

See http://www.gmayor.com/installing_macro.htm

If you want to spell check a form, then the user of the form must have
access to the macro, which can be saved in the form template the user's
normal.dot template, or the document itself, but if saved in the document
there are macro security implications which could render it unavailable to
many users. You can either run it from a toolbar button or on exit from a
field the user will tab out of.

Sub SpellCheckForm()
Dim i As Integer
Dim bProtected As Boolean

'Unprotect the file
If ActiveDocument.ProtectionType <> wdNoProtection Then
bProtected = True
ActiveDocument.Unprotect Password:=""

End If

'check each formfield for spelling
For i = 1 To ActiveDocument.FormFields
 

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

Similar Threads


Back
Top