Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #5  
Old 11-06-2013, 01:00 PM
Charles Kenyon Charles Kenyon is offline Content Controls Windows 7 64bit Content Controls Office 2013
Moderator
 
Join Date: Mar 2012
Location: Sun Prairie, Wisconsin
Posts: 9,529
Charles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant future
Default

The following might work:
Code:
Sub ChangeCCToNoDelete()
    ' Macro to set all Content Controls to locked (no delete)
    ' Written by Charles Kenyon 2013-11-06
    Dim oCC As ContentControl
    For Each oCC In ActiveDocument.ContentControls
        oCC.LockContentControl = True
    Next oCC
End Sub
See Installing Macros for direction on how to use this.

I have not tested this extensively, but it seems to work.
Reply With Quote
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
Using both rich and plain content controls in one document Erica.Black Word 0 06-18-2013 10:33 AM
Content Controls Rich Text Content Controls: Formatting? tinfanide Word VBA 8 03-04-2013 04:15 AM
Macro to link 2 content controls bortonj88 Word VBA 2 08-21-2012 06:24 AM
Content Controls Form Programming beachdog Word VBA 4 09-20-2011 10:26 AM
Content Controls Grouping Content Controls cksm4 Word VBA 2 03-01-2011 12:46 PM

Other Forums: Access Forums

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


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