Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 01-30-2011, 09:31 PM
cksm4 cksm4 is offline Move to next content control Windows XP Move to next content control Office 2007
Advanced Beginner
Move to next content control
 
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
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
Table of Content Eat up RAM Resources Tommy Word 0 08-23-2010 10:08 PM
need to grab content of certain fields? erik2000 Word 0 02-19-2010 04:19 AM
Package for CD with links to Windows media player content and Flash Shockwave content hectorh PowerPoint 4 10-15-2009 12:22 PM
Move to next content control share content between documents? albytrott Word 1 10-08-2009 08:27 AM
Templates: automatic text generation from Rich Text content control Chickenmunga Word 0 10-01-2008 11:16 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 07:03 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft