View Single Post
 
Old 11-27-2014, 06:18 AM
gmaxey gmaxey is offline Windows 7 32bit Office 2010 (Version 14.0)
Expert
 
Join Date: May 2010
Location: Brasstown, NC
Posts: 1,617
gmaxey is just really nicegmaxey is just really nicegmaxey is just really nicegmaxey is just really nicegmaxey is just really nice
Default

Every content control in the document has a unique id. You can determine the ID by selecting the CC title tab and running

Debug.Print Selection.Range.ContentControls(1).ID
'or
MsgBox Selection.Range.ContentControls(1).ID

You can then act on that CC with code using:

ActiveDocument.ContentControls("XXXXXXXXX").....

where "XXXXXXXX" represents the unique id number
__________________
Greg Maxey
Please visit my web site at http://www.gregmaxey.com/