![]() |
|
#1
|
||||
|
||||
![]()
It seems to me you could manage any number of such content controls via code like:
Code:
Private Sub Document_ContentControlOnExit(ByVal CCtrl As ContentControl, Cancel As Boolean) Application.ScreenUpdating = False Dim i As Long With ActiveDocument.SelectContentControlsByTitle(CCtrl.Title) For i = 2 To .Count With .Item(i) .LockContents = False .Range.Text = CCtrl.Range.Text .LockContents = True End With Next End With Application.ScreenUpdating = True End Sub
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
#2
|
|||
|
|||
![]()
Unfortunately, I can't seem to get this code to do anything.
Quote:
|
![]() |
Tags |
content control, instance, title |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
![]() |
User75 | Word Tables | 3 | 06-26-2018 05:37 AM |
Macro to save docx to doc that checks compatibility and converts content controls to static content. | staicumihai | Word VBA | 4 | 10-12-2016 08:23 PM |
![]() |
Susanma | Excel | 1 | 03-30-2015 01:50 AM |
VBA for content controls | ciresuark | Word VBA | 1 | 03-10-2015 03:14 PM |
![]() |
RobsterCraw | Word VBA | 16 | 11-20-2012 03:25 PM |