Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 02-24-2017, 06:56 AM
GregStewartPTC GregStewartPTC is offline Auto Populate Text On Dependent Drop Down Exit Windows 7 64bit Auto Populate Text On Dependent Drop Down Exit Office 2013
Novice
Auto Populate Text On Dependent Drop Down Exit
 
Join Date: Feb 2017
Posts: 1
GregStewartPTC is on a distinguished road
Default Auto Populate Text On Dependent Drop Down Exit

I have created a form built around dependent drop down lists. Drop down 1 feeds drop down 2 feeds drop down 3. I was not aware that text wrap does not work in drop down fields, so my 3rd drop down field isn't going to work as I had planned. What I would like to do instead is replace the 3rd drop down field with a text field that automatically populates with text based on the selection made in drop down 2. The end document will be used by multiple employee's, so I would like to code all of this through VBA into the document rather than using a select file method to reference documents on my personal computer. Just an example of the code I used for the first 2 drop downs for a point of reference:


Code:
Sub PopulateddPIP()

Select Case ActiveDocument.FormFields("ddKPI").Result

Case "ACW"

With ActiveDocument.FormFields("ddPIP").DropDown.ListEntries

.Clear

.Add "Not Multi Tasking"

.Add "Not Using Call Hx Templates"

.Add "Distracted by Personal Phone or Internet"

End With
Where drop down 1 is bookmarked as "ddKPI" and drop down 2 is bookmarked as "ddPIP". Any and all help is appreciated.

Thanks in advance.
Reply With Quote
  #2  
Old 02-24-2017, 08:05 PM
macropod's Avatar
macropod macropod is offline Auto Populate Text On Dependent Drop Down Exit Windows 7 64bit Auto Populate Text On Dependent Drop Down Exit Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,962
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

For demonstrations of code to produce -

Dependent Dropdown Content Controls, see:
https://www.msofficeforums.com/word-...html#post77762

Hierarchical Dropdown Content Controls, see:
https://www.msofficeforums.com/word-...html#post94603

Dependent Text Content Controls, see:
https://www.msofficeforums.com/word-...html#post46903
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
  #3  
Old 02-27-2017, 05:37 AM
macropod's Avatar
macropod macropod is offline Auto Populate Text On Dependent Drop Down Exit Windows 7 64bit Auto Populate Text On Dependent Drop Down Exit Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,962
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

Cross-posted at:
http://www.excelforum.com/word-forma...late-text.html
http://www.vbaexpress.com/forum/show...Drop-Down-Exit
https://www.office-forums.com/thread...-exit.2349864/
For cross-posting etiquette, please read: http://www.excelguru.ca/content.php?184
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
Reply

Tags
auto fill, dependent text, vba in microsoft word



Similar Threads
Thread Thread Starter Forum Replies Last Post
Auto Populate Text On Dependent Drop Down Exit How to populate dependent dropdowns and auto-fill text fields simultaneously? vera Word VBA 1 10-07-2016 07:41 PM
VBA coding for multiple drop-down lists to populate a text box for each list yeatropulo Word VBA 14 11-11-2015 01:08 PM
cell text to auto populate if criteria matches Jackie Excel 2 02-06-2015 07:58 PM
Populate Word Drop-down list with Excel column then auto fill form fields with Excel data Faldinio Word VBA 7 10-19-2014 06:03 AM
Auto populate text help i'm stuck! Word 1 08-13-2010 11:52 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 12:00 PM.


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