Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 358
  • Last Modified:

Document versions not updated when locked with document protected form

SharePoint doesn´t update the documents propertys inside the documents ( inside the side foot ).
The problem only ocour with documents that are locked with document protected form.

I need to have this lock on the form documents for them to work so how can I come around the problem?

Environment:
SharePoint 2010
Word 2007
0
MickMorg
Asked:
MickMorg
1 Solution
 
dlc110161Commented:
Tie a unlock and relock to an event on the document. For instance, in The Document_Open event, unprotect the document, update the property and then reprotect the document.

The code that I use to protect a document is attached. I would call the subroutine - do my updates and then call the subroutine again.

Dawn Bleuel
Word MVP


Sub proToggleFormLock()
'Toggle the form Protection on and off

If ActiveDocument.ProtectionType = wdAllowOnlyFormFields Then
    ActiveDocument.Unprotect Password:=" "
Else
    ActiveDocument.Protect Password:=" ", NoReset:=True, Type:= _
        wdAllowOnlyFormFields
End If
End Sub

Open in new window

0

Featured Post

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now