Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 44
Default Programmatically alter the Project Explorer

Is there anyway to programmatically alter the VBA Project Explorer?
The only tool that I've seen do this is MZ Tools, an IDE Addin, which
has the ability to Collapse all projects such that no modules are
visible in the treeview, only the root-level objects (the projects).
If you group modules by type, it will collapse down to the group level
such that you see all projects and their immediate sub-nodes like
"Microsoft Excel Objects","Modules",etc.

Does anyone know how MZTools does this?


http://www.mztools.com/v3/features.htm

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 205
Default Programmatically alter the Project Explorer

Is there anyway to programmatically alter the VBA Project Explorer?
The only tool that I've seen do this is MZ Tools, an IDE Addin, which
has the ability to Collapse all projects such that no modules are
visible in the treeview, only the root-level objects (the projects).
If you group modules by type, it will collapse down to the group level
such that you see all projects and their immediate sub-nodes like
"Microsoft Excel Objects","Modules",etc.

Does anyone know how MZTools does this?


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.

Regards

Stephen Bullen
Microsoft MVP - Excel

Professional Excel Development
The most advanced Excel VBA book available
www.oaltd.co.uk/ProExcelDev


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Programmatically alter the Project Explorer


"Stephen Bullen" escribió en el mensaje
...
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.


Correct.

--

Best regards,

Carlos J. Quintero

MZ-Tools: Productivity add-ins for Visual Studio .NET, VB6, VB5 and VBA
You can code, design and document much faster.
Free resources for add-in developers:
http://www.mztools.com


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Project still in "project explorer" window after file closed down! Gunnar Johansson Excel Programming 16 December 22nd 04 06:21 PM
Project still in "project explorer" window after file closed down! Gunnar Johansson[_3_] Excel Programming 0 December 7th 04 01:43 PM
VBA Project Explorer Steve Farrar Excel Programming 1 December 4th 04 02:23 PM
Assigning the Help 4, *.HLP file for a project programmatically in a protected Project Tony Seiscons Excel Programming 0 October 4th 04 03:10 PM
VBA - Programmatically Change VBA Project Password Glen[_2_] Excel Programming 1 September 2nd 03 05:36 PM


All times are GMT +1. The time now is 04:24 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"