Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 08-07-2020, 03:26 AM
arty1 arty1 is offline Duplicating dropdown box but also removing text in paragraphs when option is not selected Windows 10 Duplicating dropdown box but also removing text in paragraphs when option is not selected Office 2019
Novice
Duplicating dropdown box but also removing text in paragraphs when option is not selected
 
Join Date: Aug 2020
Posts: 1
arty1 is on a distinguished road
Unhappy Duplicating dropdown box but also removing text in paragraphs when option is not selected

Hi, I would be extremely grateful if anyone can help as I'm very new to using the Legacy tools in word and have set myself a bit of an ambitious task. I have created two drop-down menu's which I want to use to populate a fixed paragraph in a report below the inputs section. Furthermore if either are not selected I want the report content to remain hidden. The report template I'm proposing to make will have multiple different input fields powering which paragraphs are shown in the report and populate the phrases chosen to make it specific. If someone would be kind enough to show me the code to undertake this task I'm hoping I can replicate it and make the adjustments to do all of other fields I need. Thank you in advance to anyone who pick this up!!!!!



EXAMPLE:

Drop Down List 1:
• Not Selected
• Cat
• Dog

Drop-Down List 2:
• Not Selected
• Toy
• Treat


Report Content Example

My pet dog chased the neightbours (DROPDOWN LIST 1) as it had stolen its (DROPDOWN LIST 2)
Reply With Quote
  #2  
Old 08-08-2020, 07:10 PM
Guessed's Avatar
Guessed Guessed is offline Duplicating dropdown box but also removing text in paragraphs when option is not selected Windows 10 Duplicating dropdown box but also removing text in paragraphs when option is not selected Office 2016
Expert
 
Join Date: Mar 2010
Location: Canberra/Melbourne Australia
Posts: 3,932
Guessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant future
Default

How do you propose someone populates a report that is hidden?

'Legacy tools' are form fields and they were essentially superceded by content controls in Word 2007. Are you using those or are you using Content Controls?

If you want to post a sample document we can have a look at what you are working with and offer suggestions
__________________
Andrew Lockton
Chrysalis Design, Melbourne Australia
Reply With Quote
  #3  
Old 08-08-2020, 09:30 PM
gmayor's Avatar
gmayor gmayor is offline Duplicating dropdown box but also removing text in paragraphs when option is not selected Windows 10 Duplicating dropdown box but also removing text in paragraphs when option is not selected 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

Frankly I would never start a document with hidden content and for the type of report that you are suggesting, I would suggest creating a document template with a VBA userform that has the choices and then use the output from that userform to add content to the document as required. The result is a document with nothing hidden that the recipient can resurrect.
__________________
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

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Duplicating dropdown box but also removing text in paragraphs when option is not selected Conditionally Color Formatting Text selected from a dropdown list in Word 2010 pgammag Word 9 08-20-2019 04:17 PM
Powerpoint-2019 Text in selected theme remains in All Caps even when small caps option is selected Tanasha4 PowerPoint 2 04-06-2019 07:53 PM
Duplicating dropdown box but also removing text in paragraphs when option is not selected Removing indentations at beginning of paragraphs and replacing with line spaces captainamerica Word 2 10-27-2017 05:32 PM
Option Button selected will display text ksigcajun Word VBA 7 07-14-2014 09:31 AM
Don't Add Space between paragraphs option Emerogork Outlook 12 07-18-2011 10:01 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 02:32 AM.


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