Alain CHAZOT
New member
- Local time
- Today, 18:22
- Joined
- Mar 7, 2021
- Messages
- 14
Hello,
I'm looking for some VBA code that works to achieve the following functionality in a TreeView:
- when checking (or unchecking) the checkbox of a parent element, all child elements are automatically checked (or unchecked)
- when we check (or uncheck) the checkbox of ALL child elements, the checkbox of the parent element is automatically checked (or unchecked)
- if there are child elements checked and others not checked, the check box of the parent element is grayed out.
Thank you for your help !
I'm looking for some VBA code that works to achieve the following functionality in a TreeView:
- when checking (or unchecking) the checkbox of a parent element, all child elements are automatically checked (or unchecked)
- when we check (or uncheck) the checkbox of ALL child elements, the checkbox of the parent element is automatically checked (or unchecked)
- if there are child elements checked and others not checked, the check box of the parent element is grayed out.
Thank you for your help !