Thread: [Solved] Move to next content control
View Single Post
 
Old 01-30-2011, 09:31 PM
cksm4 cksm4 is offline Windows XP Office 2007
Advanced Beginner
 
Join Date: Aug 2010
Posts: 48
cksm4 is on a distinguished road
Default Move to next content control

Hello,

Does anyone know how to move to the next content control? I have a content control that I find based on it's tag. What I need to do is move to the next one after it is found.

Code:
 
Dim strTmp As String
Dim cc As ContentControl
For Each cc In ActiveDocument.contentcontrols
If cc.Tag = "ContainerContents" Then
strTmp = cc.Range.Text
'Here is where I need to go to the next cc and select the contents
strTmp = strTmp & Selection.Range.Text
End With
End If
Next
Thanks!
Reply With Quote