Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 07-10-2021, 07:32 AM
Trader174 Trader174 is offline Question on Locking vs Protection Windows 10 Question on Locking vs Protection Office 2016
Novice
Question on Locking vs Protection
 
Join Date: Jul 2021
Posts: 4
Trader174 is on a distinguished road
Default Question on Locking vs Protection

On my form I was using the build in form protection which seemed fine. However it does weird things with checkboxes.



On searching it looks like you should not use this for Content Controls and instead create a group and lock it this way.

This is fine but then my conditional VBA shading will not work because the content is locked for editing.

I have tried:

CC.LockContentControl = False
CC.LockContents = False

However these do not work.

So what am I meant to do to allow my VBA to do some editing to Content Controls without risking the user editing the form and without checkboxes going strange?

Thanks a lot
Reply With Quote
  #2  
Old 07-10-2021, 08:35 PM
gmayor's Avatar
gmayor gmayor is offline Question on Locking vs Protection Windows 10 Question on Locking vs Protection Office 2019
Expert
 
Join Date: Aug 2014
Posts: 4,103
gmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud of
Default

Locking a content control prevents it from being deleted. It doesn't lock the form. What you need is to add editors to the content controls and then lock the form as readonly. Then users will only be able to access the content controls.

An easy way to do this is to use the edit all controls option of
Insert Content Control Add-In
__________________
Graham Mayor - MS MVP (Word) (2002-2019)
Visit my web site for more programming tips and ready made processes www.gmayor.com
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Question on Locking vs Protection Protection question Ulodesk Word 2 10-29-2018 05:51 AM
Shape protection dekiblue Visio 3 05-02-2017 06:14 PM
Question on Locking vs Protection Protection in Excel gbaker Excel 2 02-28-2013 06:56 AM
Question on Locking vs Protection Password Protection JimP Visio 2 03-24-2011 04:23 AM
Document protection Daved2424 Word 0 11-17-2010 01:22 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 01:13 AM.


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