![]() |
#1
|
|||
|
|||
![]()
I'm just trying to get my head around the best way of achieving this if anyone could help?
I basically have a drop down list of selections that when clicked, populate a section of text from another word document that keeps it's style and formatting. Is that doable? I read somewhere about using VBA to insert the text at bookmarks set up in the page? Or are there any other ways? Thanks |
#2
|
|||
|
|||
![]()
As an alternative method, consider saving your text as building blocks and using a Building Blocks Gallery Content Control. This would not require macros (vba) but would require that the user have access to the template that holds the building blocks.
|
#3
|
|||
|
|||
![]()
I did have a brief look at building blocks. Do you know how I'd set it up to be able to link to the dropdown selections?
|
#4
|
|||
|
|||
![]()
Take a look at the Building Blocks Gallery Content Control. It is a dropdown of your building blocks.
|
#5
|
|||
|
|||
![]()
Thanks, I don't think I explained it very well though. I'd like a dropdown list of headings, that when clicked, populate separate paragraphs of chosen text further on in the word document
I'm just not sure how to link it all together |
#6
|
|||
|
|||
![]() Quote:
You definitely want something other than the BBG Content Control. Someone likely will help. If it were me, I think I would use a UserForm rather than a drop-down in the document. Create a Simple Userform by Graham Mayor, MVP |
#7
|
||||
|
||||
![]()
I would do this by putting all the content into the one document and bookmarking the sections that need to be 'included' by the user. You then hide all the bookmarked areas. When the user selects a section, you have a macro run that sets that bookmarked range as visible.
We already have code samples on this forum for similar requirements - sometimes these use content controls instead of bookmarks if it is more suitable. Quote:
__________________
Andrew Lockton Chrysalis Design, Melbourne Australia |
#8
|
|||
|
|||
![]() Quote:
I don't suppose you could point me in the right direction of suitable code for that please? It's abit of a minefield trying to find something that will work |
#9
|
|||
|
|||
![]()
Just a note that even though text is hidden in a Word document, it is still there.
|
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
![]() |
forskare | Word VBA | 3 | 06-13-2019 08:21 PM |
Copy Formatted Text in one Rich Text Content Control to another Rich Text Content Control | Haygordon | Word | 1 | 04-05-2019 05:43 AM |
![]() |
helenndp | Word VBA | 2 | 09-27-2018 11:04 AM |
VBA to provide text string with specific formating based on Drop down list (content control) | MP1989 | Word VBA | 4 | 07-30-2018 02:40 AM |
![]() |
TzarChasm | Word | 7 | 04-14-2016 06:28 PM |