Solved

Document versions not updated when locked with document protected form

Posted on 2011-09-13
1
311 Views
Last Modified: 2012-05-12
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
Comment
Question by:MickMorg
1 Comment
 
LVL 19

Accepted Solution

by:
dlc110161 earned 500 total points
ID: 36537779
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

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

The vision: A MegaMenu for a SharePoint portal home page The mission: Make it easy to maintain. Allow rich content and sub headers as well as standard links. Factor in frequent changes without involving developers or a lengthy Dev/Test/Prod rel…
The Selection object is designed for user interaction. It has a Range property, so it can be used in most places that a Range object can. Recorded macros must use the Selection because they are simply copying what the user is doing. A Range prope…
This video walks the viewer through the process of creating envelopes and labels, with multiple names and addresses. Navigate to the “Start Mail Merge” button in the Mailings tab: Follow the step-by-step process until asked to find the address doc…
This Micro Tutorial well show you how to find and replace special characters in Microsoft Word. This is similar to carriage returns to convert columns of values from Microsoft Excel into comma separated lists.

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now