Solved

Document versions not updated when locked with document protected form

Posted on 2011-09-13
1
348 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

Salesforce Has Never Been Easier

Improve and reinforce salesforce training & adoption using WalkMe's digital adoption platform. Start saving on costly employee training by creating fast intuitive Walk-Thrus for Salesforce. Claim your Free Account Now

Question has a verified solution.

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

This is written from a 'VBA for MS Word' perspective, but I am sure it applies to most other MS Office components where VBA is used.  One thing that really bugs me is slow code, ESPECIALLY when it's mine!  In programming there are so many ways to…
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.
Learn how to create and modify your own paragraph styles in Microsoft Word. This can be helpful when wanting to make consistently referenced styles throughout a document or template.

752 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