![]() |
|
#1
|
||||
|
||||
![]()
Open the document and click on the ¶ symbol on the Ribbon's Home tab to display the document's formatting. You should now be able to see that there are two content controls, separated by a manual line break, with a paragraph break following the second one. Click on the Ribbon's Developer tab, then on 'Design Mode'. This should make the content controls even more apparent and will reveal their titles - Client and ClientDetails, respectively.
To use these controls as-is in your own document, simply copy both of them, plus the macro code to your document. To change the Client dropdown's contents, click on it, then on 'Properties' on the Developer tab. There you can add/delete/modify the entries. Pay particular attention to how the DisplayName and Value are input, especially the latter.
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
#2
|
|||
|
|||
![]()
Thanks man, it works!
Now one more question: is it possible to link another content control to the drop-down list? Thanks |
#3
|
|||
|
|||
![]()
Paul,
I do not see any macro code to copy. Is there someplace special I should be looking for the code? Tim M |
#4
|
|||
|
|||
![]()
Hello,
I'm trying to create an invoice template. Is there a possibility to have 3 text fields filled out depending on whats chosen in a dropdown list? The problem is that the text for each field needs to be a different one. Everything is supposed to be in one line in a table that can be replicated using ContentControl. E.g.: Product Name (from dropdown list) -> Product number -> Additional info -> Price Thanks in advance Enci |
#5
|
|||
|
|||
![]()
Hi Macropod
I am having difficulty to get your macro to work in my document. (I have never used macros before) I have been creating a word template. I copied across - Client and client details. I dont know how to copy and paste the macro across so it will work in my template. Also, does my template have to be saved as a word enabled template for it to work? Thank you |
#6
|
|||
|
|||
![]()
I'm attaching the same document that I successfully got working earlier in this thread. When I recently added three names to my dropdown, the macro that updates names and phone numbers stopped working for my coworkers, but not for me! Not sure what's different on my machine vs. theirs. Thoughts?
Seth |
#7
|
|||
|
|||
![]()
Ok I admit it, I am no Word Wizard.
I have a word document with a drop down of three selections (so far) I want to move the value of each or even multiple selections down to a control text area in the document template below. I know nothing about Macros, it's my first try at them. Driving me crazy. Two days. Sugar and caffeine high come and gone multiple time. Now at the "pulling out hair stage", don't want to progress to the "banging head on desk" stage. And any VB experience I have is over 25 years old, and haven't used VB in over 15 years. Someone said record what you want it to do, it is as simple as start recording the macro, clicking on the drop down selection and then clicking on the text control area and then clicking stop on the macro recorder? Or am I missing a large part of all of this? HELP! ![]() |
#8
|
|||
|
|||
![]()
Hi!
I downloaded your example and I have word opened. I can't modify or add different names the group though. I'm using version 15.4. If that helps. Also can you add this above a header? I've been trying to create a list of 5 different names and I can't seem to add a list above it. Thanks, |
#9
|
|||
|
|||
![]()
Hello, I successful got this to work in my document. Thank you! However, I would like to have this work in the Header of Word. I keep getting an error message on this line of the VBA code. Is it possible?
ActiveDocument.ContentControls(2).Range.Text = StrDetails |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
![]() |
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 |