Quote:
Originally Posted by dpaton05
But if I want to change the content controls so your code will work, what do I insert instead?
|
Run the following macro
Code:
Sub addEditors()
Dim oCC As ContentControl
If Not ActiveDocument.ProtectionType = wdNoProtection Then
ActiveDocument.Unprotect
End If
For Each oCC In ActiveDocument.ContentControls
oCC.Range.Editors.add (wdEditorEveryone)
Next oCC
ActiveDocument.Protect Type:=wdAllowOnlyReading, NoReset:=True
lbl_Exit:
Set oCC = Nothing
Exit Sub
End Sub
which will add the editors to the content controls and then the macro to check the spelling is not required as the spell check will be automatic. Note the content controls are not protected for forms, but are marked as regions that may be edited.