Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 04-12-2018, 10:46 AM
Nikko963 Nikko963 is offline How to unlock header content control in form Windows 7 64bit How to unlock header content control in form Office 2016
Novice
How to unlock header content control in form
 
Join Date: Mar 2018
Posts: 12
Nikko963 is on a distinguished road
Default How to unlock header content control in form

Hello, everyone. Thanks in advance for your assistance.



I have a multi-page form in Word 2016 which is locked for forms. One of the content control text fields on the cover is for a company's name. I want that name to be inserted into a content control field in the header of the remaining pages. Unfortunately, the code I wrote that worked during the design phase (unlocked doc) DOESN'T work once the document is locked for forms: I get an error message that the content control is locked even though the "Contents cannot be edited" property is successfully unset (unlocked) by the code. If I unlock the document, my code works fine.

My script:

With Doc.SelectContentControlsByTag("PartnerNameHeader" ).Item(1)
.LockContents = False
.Range.Text = _
Doc.SelectContentControlsByTag("PartnerName").Item (1).Range.Text
.LockContents = True
End With

So...why does locking the document for forms have some sort of override that is preventing the content control from being edited even if its field properties says it is editable? How can I overcome this?

Thanks again.

- Nikko
Reply With Quote
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
Content Control Boxes Print on Completed Form Lambchop6 Word 2 04-05-2017 05:16 PM
How to unlock header content control in form Content Control Field Names/Titles Word Form shammi_raj Word VBA 3 03-10-2016 02:54 AM
How to unlock header content control in form Finding field names in a Word-Form created by content control shammi_raj Word 1 03-10-2016 02:37 AM
making an email form in outlook that has restricted access and uses content control fields ericc2728 Outlook 0 08-25-2014 11:19 AM
How to unlock header content control in form Allow Multiple Content Control same cell of form table DeborahBartlett Word 1 01-04-2014 11:06 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 03:17 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft