Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 05-11-2022, 06:05 AM
gmaxey gmaxey is offline Checkbox - toggle hide/unhide other checkboxes and their texts Windows 10 Checkbox - toggle hide/unhide other checkboxes and their texts Office 2016
Expert
 
Join Date: May 2010
Location: Brasstown, NC
Posts: 1,602
gmaxey is just really nicegmaxey is just really nicegmaxey is just really nicegmaxey is just really nicegmaxey is just really nice
Default

A checkbox doesn't have a "Visible"property, but you can come close:



Private Sub CheckBox1_Click()
If CheckBox1 Then
With CheckBox2
.Width = 1
.Height = 1
.Enabled = False


End With
With CheckBox3
.Width = 1
.Height = 1
.Enabled = False
End With

Else
With CheckBox2
.Width = 108
.Height = 18.6
.Enabled = True
End With
With CheckBox3
.Width = 108
.Height = 18.6
.Enabled = True
End With
End If
End Sub
__________________
Greg Maxey
Please visit my web site at http://www.gregmaxey.com/
Reply With Quote
  #2  
Old 05-11-2022, 10:43 PM
Basse Basse is offline Checkbox - toggle hide/unhide other checkboxes and their texts Windows 10 Checkbox - toggle hide/unhide other checkboxes and their texts Office 2021
Novice
Checkbox - toggle hide/unhide other checkboxes and their texts
 
Join Date: May 2022
Posts: 4
Basse is on a distinguished road
Default

Hello,
thank you for the answer. I guess thats one way to get around and solve the problem, thank you!

Best regards
Reply With Quote
Reply

Tags
checkbox, hide, vba



Similar Threads
Thread Thread Starter Forum Replies Last Post
Checkbox - toggle hide/unhide other checkbox - XMLMapping GErl Word VBA 9 11-19-2020 03:15 PM
Toggle Collapse/Expand via Content Control Checkbox metaflowdesigns Word VBA 5 07-08-2020 02:53 PM
Checkbox - toggle hide/unhide other checkboxes and their texts Hide and Unhide Rows If.... Marcia Excel Programming 2 03-20-2020 07:25 PM
Checkbox - toggle hide/unhide other checkboxes and their texts Hide / unhide Rows NullVBA Excel Programming 4 12-09-2015 05:10 AM
Hide/Unhide pictures maloneb PowerPoint 1 01-18-2012 03:34 PM

Other Forums: Access Forums

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