Can a toggle button be coded to hide/unhide other toggle buttons? Not by hiding rows containing the buttons though.
Can a toggle button be coded to hide/unhide other toggle buttons? Not by hiding rows containing the buttons though.
Sure. Assuming ToggleButton1 is to toggle the visibility of ToggleButton2, ToggleButton3 and ToggleButton4...
![]()
Please Login or Register to view this content.
Initially it did it backwards, when I clicked the button the other buttons disappeared.
So I had to make the buttons visible, delete this code, click the button, insert the code, then click the button again.
But, when I reopened the sheet the buttons all started off as visible - I clicked the button which activated other functions and left the other buttons visible - then clicked the button again which properly hid the other buttons.
Playing around with it with a different code, not sure if it works any better:
![]()
Please Login or Register to view this content.
I want the buttons to be hidden until I click the button. But it doesn't allow the code
![]()
Please Login or Register to view this content.
If you want the ToggleButton to be hidden initially, go into Design Mode (on the Developer Tab), then right click the ToggleButton, select Properties from the popup menu that appears and then set the Visible property to False.
If you want to do this in code, the correct statement is...
![]()
Please Login or Register to view this content.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks