Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 03-28-2024, 11:51 AM
Eragon91 Eragon91 is offline Show and hide table rows with checkboxes in Word Windows 10 Show and hide table rows with checkboxes in Word Office 2021
Novice
Show and hide table rows with checkboxes in Word
 
Join Date: Mar 2024
Posts: 2
Eragon91 is on a distinguished road
Default Show and hide table rows with checkboxes in Word

Hello,



I need help implementing a task in Word. Unfortunately, I have no experience with VBA and my own research for a solution
was unsuccessful. I would like to integrate the following function into a Word document:

The Word document essentially consists of tables. The tables have different numbers of rows and two columns. The first
column should only contain text. There should be a checkbox in the second column. The checkboxes should initially be hidden.
The checkboxes should only become visible when you activate the “Show all” function.

If the check box is selected, the text in column 1 should have a specific target style assigned to it. If the check box is
cleared, the text should be mapped to another style that is defined to have the text hidden. If I deactivate the "Show all"


function again, I want the rows whose checkboxes were deactivated to no longer be visible.



So ultimately I want to be able to easily control what I can and can't see in my document using the checkboxes.
Is this possbile in Word with VBA?

Thanks in advance for an answer Kind regards, Daniel
Reply With Quote
  #2  
Old 03-29-2024, 11:05 AM
TessaMurillo TessaMurillo is offline Show and hide table rows with checkboxes in Word Windows Vista Show and hide table rows with checkboxes in Word Office 2010
Advanced Beginner
 
Join Date: Mar 2024
Posts: 33
TessaMurillo has a little shameless behaviour in the past
Default

You can create a macro that hides or shows checkboxes based on the Show All feature, and assigns specific styles to the text in column 1 based on the state of the checkboxes. Deactivating the "Show all" function again, I want the rows whose checkboxes were deactivated to no longer be visible. In addition, you can toggle the visibility of rows depending on the state of the checkboxes.
Reply With Quote
  #3  
Old 03-29-2024, 10:51 PM
Charles Kenyon Charles Kenyon is offline Show and hide table rows with checkboxes in Word Windows 11 Show and hide table rows with checkboxes in Word Office 2021
Moderator
 
Join Date: Mar 2012
Location: Sun Prairie, Wisconsin
Posts: 9,140
Charles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant future
Default

Cross-posted at:
Show and hide table rows with checkboxes in Word
For cross-posting etiquette, please read: A Message to Forum Cross-Posters
Reply With Quote
  #4  
Old 03-30-2024, 07:34 AM
Eragon91 Eragon91 is offline Show and hide table rows with checkboxes in Word Windows 10 Show and hide table rows with checkboxes in Word Office 2021
Novice
Show and hide table rows with checkboxes in Word
 
Join Date: Mar 2024
Posts: 2
Eragon91 is on a distinguished road
Default

Through your post I understood what the problem with corss posting is. Not to excuse the matter, but I'm new to forums and didn't know. I read the homepage carefully and understood it and will take it into account in the future. Sorry
Reply With Quote
  #5  
Old 03-30-2024, 03:17 PM
Guessed's Avatar
Guessed Guessed is offline Show and hide table rows with checkboxes in Word Windows 10 Show and hide table rows with checkboxes in Word Office 2016
Expert
 
Join Date: Mar 2010
Location: Canberra/Melbourne Australia
Posts: 3,977
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

Looks like the OP has solved their question now as reported on the other forum.
__________________
Andrew Lockton
Chrysalis Design, Melbourne Australia
Reply With Quote
  #6  
Old 03-30-2024, 07:55 PM
Charles Kenyon Charles Kenyon is offline Show and hide table rows with checkboxes in Word Windows 11 Show and hide table rows with checkboxes in Word Office 2021
Moderator
 
Join Date: Mar 2012
Location: Sun Prairie, Wisconsin
Posts: 9,140
Charles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant future
Default

No apology necessary.

The problems caused by cross-posting is not intuitive.
Reply With Quote
Reply

Tags
check box, hide rows



Similar Threads
Thread Thread Starter Forum Replies Last Post
VBA to show/hide checkboxes- always showing bookmark KSmart Word VBA 4 11-07-2023 02:24 PM
UserForm with checkboxes that hide/show bookmarked text in document dohertym Word VBA 4 05-16-2022 09:48 PM
How to show/hide data from table in power point kbendelac PowerPoint 0 10-11-2021 07:45 PM
Show and hide table rows with checkboxes in Word Hide table rows LindaS Word Tables 9 05-24-2018 10:32 PM
Temporarily show/hide selected table rows glricht Word Tables 0 12-29-2009 05:40 AM

Other Forums: Access Forums

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