![]() |
|
#1
|
||||
|
||||
![]()
A loop would not be required if you linked them all to the same xml node. However, the code to loop would look something like this
Code:
Sub CCLoader() Dim aCC As ContentControl For Each aCC In ActiveDocument.ContentControls If aCC.Title = "AccountName" Then aCC.Range.Text = "hi mum" End If Next End Sub
__________________
Andrew Lockton Chrysalis Design, Melbourne Australia |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
![]() |
Sammie0Sue | Word VBA | 21 | 01-12-2021 04:44 PM |
VBA for content controls | ciresuark | Word VBA | 1 | 03-10-2015 03:14 PM |
Calculate Age From Content Controls | kintap | Word VBA | 10 | 07-02-2014 09:25 AM |
Windows update loop | franklekens | Windows | 0 | 04-10-2014 11:56 PM |
![]() |
Sammie0Sue | Word | 6 | 11-06-2013 10:56 PM |