Macro to unlock content controls

Joined
Nov 5, 2013
Messages
2
Reaction score
0
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.

Sub UnlockCControls()
Dim oCC As ContentControl
For Each oCC In ActiveDocument.ContentControls
oCC.LockContentControl = False
Next oCC
End Sub
 
Top