Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Document versions not updated when locked with document protected form

Posted on 2011-09-13
1
Medium Priority
?
355 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 2000 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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

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…
Preface: When I started this series, I used the term CommandBars because that is the Office Object class that it discusses. Unfortunately, when Microsoft introduced Office 2007, they replaced the standard Commandbar menus with "The Ribbon" and rem…
This video shows the viewer how to set up and create Footnotes in their document. Click on the References tab: Select "Insert Footnote": Type in desired text:
This video shows where to find the word count, how to display it, and what it breaks down to in Microsoft Word.

670 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