#1
|
|||
|
|||
Contentcontrols in ListBox
Hi guys,
I am new to the forum and I need help in creating a word template with VBA Userform which allows me to select several paragraphs from a list of paragraphs (using RichText ContentControls) in ListBox, then only load the selected paragraph with a Command Button. I have seen people created something similar in another forum but not sure how can it be done, screenshot as follows. I do not need anything complicated but only shows the paragraphs (more than 1) which I need from the Listbox. Imgur: The magic of the Internet My list of paragraphs using contentcontrol could be as follows which already pre-type in the word template. The name of the title can be modified to ease the data entries. Title Tag Content Vege 1.1 Cabbage, Lettuce, Cucumber Meat 1.2 Chicken, Fish, Beef Fruits 1.3 Apple, Orange, Let me know if you guys could help, many thanks in advance ! |
#2
|
||||
|
||||
The illustration shows a userform rather than a content control, and frankly that is the better way to make such selections to create a document. You can write text that corresponds with the selections to content controls, bookmarks, docvariables etc What you can't do is put a content control on a userform. It has its own list box functionality and such list boxes can have many columns, including hidden columns if you wish.
Start at Create a userform
__________________
Graham Mayor - MS MVP (Word) (2002-2019) Visit my web site for more programming tips and ready made processes www.gmayor.com |
Tags |
content control, listbox, userform |
Thread Tools | |
Display Modes | |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
How to filter data before it is pulled into combobox/listbox AND remove data from listbox | Izzii0x | Excel Programming | 8 | 05-24-2019 07:25 AM |
Dropdownlist-Parsing values to various ContentControls | highrise955 | Word VBA | 9 | 03-08-2016 02:03 AM |
ActiveDocument.ContentControls(ID) not working | Tejas.T | Word VBA | 3 | 03-09-2015 06:50 PM |
This is a Userform LIstbox queston: A variable does not set to the value of a listbox | CatMan | Excel Programming | 14 | 08-18-2014 08:14 PM |
This is a Userform LIstbox queston: A variable does not set to the value of a listbox | CatMan | Excel | 1 | 08-08-2014 09:41 AM |