Solved

Document versions not updated when locked with document protected form

Posted on 2011-09-13
1
352 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Office 365 Training for Admins - 7 Day Trial

Learn how to provision tenants, synchronize on-premise Active Directory, implement Single Sign-On, customize Office deployment, and protect your organization with eDiscovery and DLP policies.  Only from Platform Scholar.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A few years ago I was very much a beginner at VBA, and that very much remains the case today.  I'll do my best to explain things as I go in the hope that other beginners can follow.  If you just want to check out a tool that creates a Select Case fu…
A recent project that involved parsing Tableau Desktop and Server log files to extract reusable user queries for use in other systems. I chose to use PowerShell to gather the data, and SharePoint to present it...
This video walks the viewer through the process of creating an MLA formatted document, as well as a bibliography with citations.
In a previous video Micro Tutorial here at Experts Exchange (http://www.experts-exchange.com/videos/1358/How-to-get-a-free-trial-of-Office-365-with-the-Office-2016-desktop-applications.html), I explained how to get a free, one-month trial of Office …

617 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