jnash67
asked on
How can I programmatically collapse a project in Excel VBA VBE IDE
I know that MZ Tools does this. The VBProject object can be gotten using:
application.vbe.vbprojects .item(1)
How do I collapse it in the Project Explorer?
application.vbe.vbprojects
How do I collapse it in the Project Explorer?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
You rock
ASKER
The Microsoft Visual Basic for Applications Extensibility library
provides the object model for the VBIDE, allowing us to add menu items
to the Project Explorer popup. It doesn't, however, provide the
granularity of which nodes in the treeview are expanded. So, I guess
that MZTools uses the object model to get the window handle and Windows
API calls to find the handle of the TreeView and collapse the nodes.
How can I do this?