View Single Post
 
Old 09-23-2018, 02:44 PM
therexjones therexjones is offline Windows 10 Office 2016
Novice
 
Join Date: Sep 2018
Posts: 6
therexjones is on a distinguished road
Default Lock All Content Controls, Except the First Instance of Each Title

I have a template with multiple different content controls that repeat throughout the document.

I want the end user to only be able to edit the first instance of each content control. This makes it incredibly difficult if I need to make changes to the document later on.

Currently, I have a code that loops through all of them and unlocks the ability to edit each one, which makes it easy for me to make changes to the template. I then apply a code to go back through and lock all of them at once. I then manually unlock the first instance of each field, and publish the form.

I am looking for code to automatically loop through the content controls, unlock the first instance of each title, and lock the rest. I found code that will do this for one specific title, but I have to repeat the code for each title. This is not preferred as there are several titles, which I change from time to time based on the needs of the template.
Reply With Quote