Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Microsoft Office Forums
Word
How to populate other fields when a dropdown was changed
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
Reply to thread
Message
[QUOTE="AhKing, post: 7430613, member: 4458"] Thanks for the response. I read that thread many times but im still cant understand certain block of code you provided there. i am having trouble on understanding this block of code [CODE] ActiveDocument.SelectContentControlsByTitle("ID")(1).DropdownListEntries.Clear For i = 1 To LRow ActiveDocument.SelectContentControlsByTitle("ID")(1).DropdownListEntries.Add _ Text:=Trim(.Range("A" & i)) 'or, for example, to add the contents of column B to the content control's 'value': 'ActiveDocument.SelectContentControlsByTitle("ID")(1).DropdownListEntries.Add _ Text:=Trim(.Range("A" & i)), Value:=Trim(.Range("B" & i))[/CODE] Assuming i want to populate 2 input text field. How should i change this code according to my needs? Do i need to clear first and add? Does this for 1 input field only and have to create another same code for another field? [/QUOTE]
Verification
Post reply
Forums
Microsoft Office Forums
Word
How to populate other fields when a dropdown was changed
Top