TreeView: check and uncheck the item boxes (1 Viewer)

Alain CHAZOT

New member
Local time
Today, 21:08
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 !
 

MajP

You've got your good things, and you've got mine.
Local time
Today, 15:08
Joined
May 21, 2018
Messages
8,527
I have code here to check all descendants
 

Users who are viewing this thread

Top Bottom