S
Susan B. Quinn
I have set up a template that directs the user to fill in specific
information and as it exits the last field it runs and unprotect macro. It
appears that some users are finding it deletes the information when it
unprotects.
Note: I don't want to reprotect the document.
I have tried the various macros as suggested by Doug, Jay and friends but
for some reason it continues to reset even though the macro is designed not to
These are the two codes I used so far.
Sub ToolsProtectUnprotectDocument()
Dim oDoc As Document
Set oDoc = ActiveDocument
If oDoc.ProtectionType = wdNoProtection Then
With Dialogs(wdDialogToolsProtectDocument)
.noreset = True
.Show
End With
Else
oDoc.unprotect
End If
Exit Sub
Selection.GoTo What:=wdGoToBookmark, name:="start"
End Sub
Sub ProtectForm()
If ActiveDocument.ProtectionType = wdAllowOnlyFormFields Then
ActiveDocument.unprotect
End If
End Sub
Any enlightening assistance would be appreciated.
information and as it exits the last field it runs and unprotect macro. It
appears that some users are finding it deletes the information when it
unprotects.
Note: I don't want to reprotect the document.
I have tried the various macros as suggested by Doug, Jay and friends but
for some reason it continues to reset even though the macro is designed not to
These are the two codes I used so far.
Sub ToolsProtectUnprotectDocument()
Dim oDoc As Document
Set oDoc = ActiveDocument
If oDoc.ProtectionType = wdNoProtection Then
With Dialogs(wdDialogToolsProtectDocument)
.noreset = True
.Show
End With
Else
oDoc.unprotect
End If
Exit Sub
Selection.GoTo What:=wdGoToBookmark, name:="start"
End Sub
Sub ProtectForm()
If ActiveDocument.ProtectionType = wdAllowOnlyFormFields Then
ActiveDocument.unprotect
End If
End Sub
Any enlightening assistance would be appreciated.