Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 02-06-2013, 02:38 PM
macropod's Avatar
macropod macropod is offline Drop-down Populated with text entry Windows 7 64bit Drop-down Populated with text entry Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,340
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

Quote:
Originally Posted by ReviTULize View Post
I cannot figure out how to modify the code to have multiples of these. Is that easy?
That depends on what you want to do - and how comptetent you are using content controls and vba.

For example, if you want to add another set to populate a different dropdown content control with the contents of another set of text content controls, it's quite easy to replicate the If ... End If block and change the content control titles to suit whatever you use for the parallel set.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
  #2  
Old 02-20-2013, 01:34 PM
ReviTULize ReviTULize is offline Drop-down Populated with text entry Windows 7 64bit Drop-down Populated with text entry Office 2007
Novice
Drop-down Populated with text entry
 
Join Date: Dec 2011
Posts: 20
ReviTULize is on a distinguished road
Default

Quote:
Originally Posted by macropod View Post
That depends on what you want to do - and how comptetent you are using content controls and vba.

For example, if you want to add another set to populate a different dropdown content control with the contents of another set of text content controls, it's quite easy to replicate the If ... End If block and change the content control titles to suit whatever you use for the parallel set.
Thanks for the reply...
unfortunately I am not very competent with vba. I tried to just copy/paste the code and change the titles(in bold from your code below) I am not sure what the lines below it are doing... I am trying to get some help internally but not much experience there either. I am not clear on what the lines in red are doing(which is most of the code)


If ContentControl.Title = "Period" Then
ContentControl.DropdownListEntries.Clear
For i = 1 To .ContentControls.Count
If Left(.ContentControls(i).Title, 4) = "Time" Then
j = j + 1
ContentControl.DropdownListEntries.Add Text:=j & " - " & .ContentControls(i).Range.Text
Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Caption Text Entry Disabled?!? MYGS Word 14 06-21-2016 07:07 PM
Drop-down Populated with text entry Form field selection allows entry into form text box David C Word 1 10-24-2012 04:53 AM
Drop-down Populated with text entry Request: Creating an Auto-Populated Template Skep18 Word 2 05-29-2012 10:52 AM
Drop-down Populated with text entry Automate text entry in Word 2007 jegarner Word 4 05-15-2011 04:17 PM
Text Entry affecting text below it mwalker2 Word 2 03-20-2011 11:37 AM

Other Forums: Access Forums

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