Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 09-29-2014, 08:50 PM
gmayor's Avatar
gmayor gmayor is offline Show/Hide Text based on Checkbox Selection Windows 7 64bit Show/Hide Text based on Checkbox Selection Office 2010 32bit
Expert
 
Join Date: Aug 2014
Posts: 4,144
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 ofgmayor has much to be proud of
Default

If you are going the macro route, then rather than show/hide the hidden text, use the macro to write the text to a bookmarked location or write a nullstring to the bookmark according to the value of the checkbox, then reset the bookmark to the range.

See http://www.gmayor.com/SelectFile.htm for some other ideas.
__________________
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
  #2  
Old 09-30-2014, 02:20 PM
tammytran105 tammytran105 is offline Show/Hide Text based on Checkbox Selection Windows XP Show/Hide Text based on Checkbox Selection Office XP
Novice
Show/Hide Text based on Checkbox Selection
 
Join Date: Sep 2014
Posts: 3
tammytran105 is on a distinguished road
Default

Thank you for the quick replies Paul and Graham. I am new to using the developer tab in Word and did not realize it would be an issue to do it the way I did. I'm glad you told me this. I will try to take a different route for creating my form. I tried doing the DocVariable Field thing from Graham's link, but I wasn't able to get it to work.
What would be the best way to create a form like this and not run into any of the problems mentioned by Paul? It does not have to be through Word.

If anyone has any samples of a form with hidden text dependent on selections, it would be very helpful to see. Please share if you have one.. thanks!!
Reply With Quote
  #3  
Old 09-30-2014, 09:27 PM
macropod's Avatar
macropod macropod is offline Show/Hide Text based on Checkbox Selection Windows 7 64bit Show/Hide Text based on Checkbox Selection Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,521
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

Quote:
Originally Posted by tammytran105 View Post
I tried doing the DocVariable Field thing from Graham's link, but I wasn't able to get it to work.
Without actually seeing a document in which you've tried to implement it, we can't really advise on where you might have gone wrong. Can you attach a document to a post with some representative data (delete anything sensitive), including the macro code? You do this via the paperclip symbol on the 'Go Advanced' tab at the bottom of this screen.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Show/Hide Text based on Checkbox Selection Hide/Unhide a Block of Text Based on Choice Selection inquirer Word VBA 7 09-22-2014 04:41 PM
Show/Hide Text based on Checkbox Selection Hide Checkbox When Printing vinceplunkett Word 1 12-03-2013 01:53 AM
Show/Hide Text based on Checkbox Selection Show/hide paragraphs based on upfront decisions miscia76 Word 1 11-13-2013 04:29 PM
Show/Hide Text based on Checkbox Selection VBA for CheckBox to Hide Slides mutchy25 PowerPoint 1 09-21-2012 01:40 AM
Macro to populate a text form field based on dropdown selection koloa Word 0 10-20-2011 11:52 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 08:34 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft