Thread: [Solved] Move to next content control
View Single Post
 
Old 01-30-2011, 10:48 PM
macropod's Avatar
macropod macropod is offline Windows 7 32bit Office 2000
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,963
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

Hi Brock,

You could use something like:
Code:
Dim strTmp As String, i As Integer
With ActiveDocument
  For i = 1 To .ContentControls.Count
    If .ContentControls(i).Tag = "ContainerContents" Then
      strTmp = .ContentControls(i).Range.Text & .ContentControls(i + 1).Range.Text
      Exit For
    End If
  Next
End With
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote