All open projects

  • Thread starter Thread starter Todd Huttenstine
  • Start date Start date
T

Todd Huttenstine

Hey guys

I need to list all of my open projects. What is the code
for this?


Thank you

Todd Huttenstine
 
You must have missed it:

Before using these procedures, you'll need to set a reference in VBA to the
VBA Extensibility library. In the VBA editor, go to the Tools menu, choose
the References item, and put a check next to "Microsoft Visual Basic For
Applications Extensibility" library. This enables VBA to find the
definitions of these objects.


After you create the reference, go to the object browse and restrict the
search to VBIDE

search on Project

at the bottom you will see

VBE VBE Projects

click on that and hit F1

from help:

Returns the VBProjects collection, which represents all of the projects
currently open in the Visual Basic IDE.



--

Regards,

Tom Ogilvy
 
Todd,

Try something like

Dim VBProj As VBIDE.VBProject
For Each VBProj In Application.VBE.VBProjects
Debug.Print VBProj.Name
Next VBProj


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

LastName, FirstName format 2
Reversing Words 5
Software Life Cycle 3
Select text in textbox 2
Collection Object Keys 10
Listbox Selection 1
Listbox 8
displaying column letter of active cell 5

Back
Top