OTWarrior
09-17-2007, 08:44 AM
I have a protected document using form fields, with the user inputting information in the form in said form fields. The user's have requested a spell check facility (as it normally doesn't work in protected mode) and I have obtained the follwoing code:
Sub CheckSpelling()
Application.ScreenUpdating = False
ActiveDocument.Unprotect Password:=""
ActiveDocument.CheckSpelling
ActiveDocument.Protect Password:="", NoReset:=True, Type:=wdAllowOnlyFormFields
Application.ScreenUpdating = True
End Sub
This kinda works, except it doesn't look at the form fields result to check the spelling.
Is there a specific function for this? or would I have to write some code to select every form field maually (a "for, next, loop" kinda thang).
...Or is there no known way to check the spelling in form fields?
Sub CheckSpelling()
Application.ScreenUpdating = False
ActiveDocument.Unprotect Password:=""
ActiveDocument.CheckSpelling
ActiveDocument.Protect Password:="", NoReset:=True, Type:=wdAllowOnlyFormFields
Application.ScreenUpdating = True
End Sub
This kinda works, except it doesn't look at the form fields result to check the spelling.
Is there a specific function for this? or would I have to write some code to select every form field maually (a "for, next, loop" kinda thang).
...Or is there no known way to check the spelling in form fields?