Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #3  
Old 01-02-2024, 11:40 AM
AVarg123 AVarg123 is offline Adjust content antd line spacing in word table according to checkbox content control state Windows 10 Adjust content antd line spacing in word table according to checkbox content control state Office 2016
Novice
Adjust content antd line spacing in word table according to checkbox content control state
 
Join Date: Dec 2021
Posts: 15
AVarg123 is on a distinguished road
Default

This is the code I am using. This code will hide the text when I uncheck the ContentControl.

Private Sub Document_ContentControlOnExit(ByVal ContentControl As ContentControl, Cancel As Boolean)

If ContentControl.Tag <> "" Then
ActiveDocument.Bookmarks(ContentControl.Tag).Range .Font.Hidden = Not ContentControl.Checked

End If

Issue is: table border will not hide with this code, even though no border style has been selected. pic attached.
Attached Images
File Type: png pic.png (34.8 KB, 23 views)
Reply With Quote
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
Hiding rich text content control using checkbox - Removing extra spacing TheOstrich Word VBA 4 11-15-2023 11:58 AM
Adjust content antd line spacing in word table according to checkbox content control state One Content Control Checkbox checks another Content Control Checkbox DEsh Word VBA 2 10-06-2017 08:23 PM
Adjust content antd line spacing in word table according to checkbox content control state Clicking the selected Content Control checkbox returns wrong control in vba event DougsGraphics Word VBA 2 06-24-2015 07:31 AM
Adjust content antd line spacing in word table according to checkbox content control state Deleting a table from a content control -- preserving the content control BrainSlugs83 Word Tables 8 11-14-2013 03:06 AM

Other Forums: Access Forums

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