#1
|
|||
|
|||
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 |
#2
|
|||
|
|||
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.
|
#3
|
|||
|
|||
Cross-posted at:
Show and hide table rows with checkboxes in Word For cross-posting etiquette, please read: A Message to Forum Cross-Posters |
#4
|
|||
|
|||
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
|
#5
|
||||
|
||||
Looks like the OP has solved their question now as reported on the other forum.
__________________
Andrew Lockton Chrysalis Design, Melbourne Australia |
#6
|
|||
|
|||
No apology necessary.
The problems caused by cross-posting is not intuitive. |
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 |
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 |