View Single Post
 
Old 08-14-2014, 02:55 AM
macropod's Avatar
macropod macropod is offline Windows 7 32bit Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,467
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

Post #9 in this thread already describes how you would go about adding more sets.

Although that post refers to identifying the target content controls by index number, a better way might be to reference them via their own titles, using code like:
Code:
ActiveDocument.SelectContentControlsByTitle("ClientDetails").Item(1).Range.Text = StrDetails
As for the error message, I don't know what that's about - the code works fine with multiple content controls in my testing.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote