Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 08-22-2016, 04:52 AM
macropod's Avatar
macropod macropod is offline Multiple entries in dropdown lists Windows 7 64bit Multiple entries in dropdown lists Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,467
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

That kind of thing has already been discussed, see, for example posts #9 & #19. As per the discussions in those posts, you could, for example, use code like:
Code:
ActiveDocument.ContentControls(2).Range.Text
ActiveDocument.ContentControls(3).Range.Text
or:
Code:
With ActiveDocument.SelectContentControlsByTitle("ClientDetails")
  .Item(1).Range.Text = StrDetails
  .Item(2).Range.Text = StrDetails
End With

__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
  #2  
Old 08-22-2016, 06:35 AM
Messias21 Messias21 is offline Multiple entries in dropdown lists Windows 7 64bit Multiple entries in dropdown lists Office 2010 64bit
Novice
 
Join Date: Aug 2016
Location: Hamburg, Germany
Posts: 2
Messias21 is on a distinguished road
Default

Quote:
Originally Posted by macropod View Post
That kind of thing has already been discussed, see, for example posts #9 & #19. As per the discussions in those posts, you could, for example, use code like:
Code:
ActiveDocument.ContentControls(2).Range.Text
ActiveDocument.ContentControls(3).Range.Text
or:
Code:
With ActiveDocument.SelectContentControlsByTitle("ClientDetails")
  .Item(1).Range.Text = StrDetails
  .Item(2).Range.Text = StrDetails
End With
Hey, thanks for the reply.

Is it possible to just use different parts of the string (f.e. Bank1 (Part 1) | abcd1234 (part 2) | Mr. Meyer (Part 3) ) in different contentcontrols?
Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Multiple entries in dropdown lists Delete Multiple Entries dudeabides Office 1 07-04-2011 02:49 AM
Multiple task lists and multiple calendars kballing Outlook 0 01-18-2011 10:23 AM
Creating Multiple Contact Lists meltee78 Outlook 1 01-03-2011 09:45 PM
multiple calendar entries across a group halfhearted Outlook 0 10-11-2009 12:13 PM
Word Forms : Dropdown lists wferaera45 Word 0 04-06-2006 03:02 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 01:37 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