Microsoft Office Forums

Go Back   Microsoft Office Forums > Microsoft Word > Word VBA

Reply
 
LinkBack Thread Tools Display Modes
  #1  
Old 05-02-2019, 09:06 AM
matthias92701 matthias92701 is offline Windows XP Office 2016
Novice
 
Join Date: May 2019
Posts: 1
matthias92701 is on a distinguished road
Default Auto populate a text field based on Content Control Dropdown List

Honestly, I don't know where to begin. I have created a word document which has a Content Control dropdown list. The list is titled "Select Participants" and I've added in the names of the participants. What I'm wanting is for when a participant's name is selected from the Content Control dropdown list, it auto populates a text field (text box?) that corresponds to that participant's name (ie value). I'm very new to VBA code and don't know where to begin (bookmarks?, mapping?, etc.). I don't even know what to input. I've scoured websites but nothing is clear.
Any suggestions would be very helpful. Thanks.
Reply With Quote
  #2  
Old 05-02-2019, 09:38 AM
gmaxey gmaxey is offline Windows 10 Office 2016
Word MVP 2003-2009
 
Join Date: May 2010
Location: Marble, NC
Posts: 843
gmaxey will become famous soon enough
Default

There are various methods explained here including content controls.

https://gregmaxey.com/word_tip_pages...down_list.html
__________________
Greg Maxey
Please visit my web site at http://www.gregmaxey.com/
Reply With Quote
  #3  
Old 05-02-2019, 03:54 PM
macropod's Avatar
macropod macropod is offline Windows 7 64bit Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 19,392
macropod is a splendid one to beholdmacropod is a splendid one to beholdmacropod is a splendid one to beholdmacropod is a splendid one to beholdmacropod is a splendid one to beholdmacropod is a splendid one to beholdmacropod is a splendid one to beholdmacropod is a splendid one to behold
Default

See also:
http://www.msofficeforums.com/word-v...html#post46903
and, for different elements from a selected item to be output to different content controls, see:
http://www.msofficeforums.com/word-v...tml#post120392
__________________
Cheers,
Paul Edstein
[MS MVP - Word]
Reply With Quote
Reply

Tags
content controls, dropdownlist, vba

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Auto populate text box based on drop-down content control and repeat the process via copy paste helenndp Word VBA 2 09-27-2018 11:04 AM
Importing content control data from excel and populate two fields on selected dropdown badarlodhi Word VBA 7 08-01-2018 05:55 AM
Have Text Entered in Content Control / PreDefined Field Populate Field in Footer bzowk Word 1 04-14-2016 11:50 AM
Adding auto text to end of content control field ksigcajun Word VBA 4 10-13-2014 05:37 AM
Macro to populate a text form field based on dropdown selection koloa Word 0 10-20-2011 11:52 AM


All times are GMT -7. The time now is 10:36 PM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
MSOfficeForums.com is not affiliated with Microsoft