Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 03-10-2015, 12:31 AM
Catty Catty is offline Macro to unlock content controls Windows 7 32bit Macro to unlock content controls Office 2010 32bit
Advanced Beginner
Macro to unlock content controls
 
Join Date: Nov 2013
Posts: 39
Catty is on a distinguished road
Default Macro to unlock content controls

Hi

I have code that unlocks a locked content control in order for me to delete it via code. The only problem I have is that I am unable to make this work for content controls that are inside a textbox. Below is the code i'm using.

Code:
Sub UnlockCControls()
Dim oCC As ContentControl
For Each oCC In ActiveDocument.ContentControls
oCC.LockContentControl = False
Next oCC
End Sub
Please help!
Reply With Quote
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
Macro to unlock content controls When content controls are deleted, my macro does not work as I would like. harry.ayre Word VBA 2 02-23-2015 10:35 AM
Macro to unlock content controls Cant type into content controls in a form after protecting document using macro rgburridge Word VBA 4 01-27-2015 02:37 PM
Word 2010 Macro Enabled Template with Content Controls keen1598 Word VBA 7 01-29-2014 03:17 PM
Macro to unlock content controls Content Controls Sammie0Sue Word 6 11-06-2013 10:56 PM
Macro to link 2 content controls bortonj88 Word VBA 2 08-21-2012 06:24 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 04:03 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