Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 08-30-2017, 01:01 PM
noldak noldak is offline Using a Checkbox to Change Content that is displayed Windows 7 64bit Using a Checkbox to Change Content that is displayed Office 2013
Novice
Using a Checkbox to Change Content that is displayed
 
Join Date: Aug 2017
Posts: 1
noldak is on a distinguished road
Red face Using a Checkbox to Change Content that is displayed

Hello!

I would like to check a checkbox in Word and have it only show some text content when the box is checked.



I have attempted to do this with IF statements and bookmarks, but I have not been able to get it to do what I want.

Even just trying to reference the checkbox is proving to be difficult:

{IF check = ☒ "CHECKED" "UNCHECKED"}
Where the title and tag of the checkbox are 'check', and the ☒ is a content control checkbox.

Any steering in the right direction would be helpful!

Do you think that this would be better as a macro?
Reply With Quote
  #2  
Old 08-31-2017, 04:53 AM
macropod's Avatar
macropod macropod is offline Using a Checkbox to Change Content that is displayed Windows 7 64bit Using a Checkbox to Change Content that is displayed Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,467
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

You would need to use a ContentControlOnExit macro to test the checkbox state and modify a Document variable or bookmark so your IF test can evaluate that.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
Reply

Tags
content control, if statement, vba

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Using a Checkbox to Change Content that is displayed Content control checkbox calculations allikat305 Word Tables 5 11-22-2016 11:20 PM
outlook 2013 this item contains active content that cannot be displayed in the reading pane w0lfshad3 Outlook 2 09-14-2016 03:44 PM
Using a Checkbox to Change Content that is displayed Show Userform when Content Control CheckBox ticked derajlance Word VBA 1 05-13-2016 01:55 PM
I would like to change how the screen is displayed ottiliegirl OneNote 0 01-17-2016 10:27 AM
Using a Checkbox to Change Content that is displayed Replace checkbox symbol with check box content control canadansk Word VBA 5 04-01-2015 08:21 AM

Other Forums: Access Forums

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


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