Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 10-31-2019, 03:12 AM
chiawei00 chiawei00 is offline Contentcontrols in ListBox Windows 10 Contentcontrols in ListBox Office 2016
Novice
Contentcontrols in ListBox
 
Join Date: Oct 2019
Posts: 1
chiawei00 is on a distinguished road
Lightbulb 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 !
Reply With Quote
  #2  
Old 10-31-2019, 04:45 AM
gmayor's Avatar
gmayor gmayor is offline Contentcontrols in ListBox Windows 10 Contentcontrols in ListBox Office 2016
Expert
 
Join Date: Aug 2014
Posts: 4,101
gmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud of
Default

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
Reply With Quote
Reply

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
Contentcontrols in ListBox 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
Contentcontrols in ListBox 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

Other Forums: Access Forums

All times are GMT -7. The time now is 02:08 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