Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 01-30-2011, 11:14 PM
macropod's Avatar
macropod macropod is online now Move to next content control Windows 7 32bit Move to next content control Office 2000
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,384
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,



If the Content Controls both have the same tag, you could use something like:
Code:
Dim strTmp As String
With ActiveDocument.SelectContentControlsByTag("ContainerContents")
  strTmp = .Item(1).Range.Text & .Item(2).Range.Text
End With
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
  #2  
Old 01-30-2011, 11:33 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

It works!! I removed the Exit For and got the code to move to the next instance in the manner I needed. Basically, I need it to create the string for each tag it finds. Thanks again Paul, much appreciated!

Brock
Reply With Quote
Reply



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 03:17 PM.


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