I don't think you can do this. If you use the Show method on a
CodePane object, the right folder will be opened in the tree view
control, but I don't think there is any way to close a tree view
folder.
--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com
"R Avery" wrote in message
...
I want to be able to programmatically expand and collapse
folders and
projects.