Solved

Application.VBE.VBProjects(i)

Posted on 1998-10-22
2
1,654 Views
Last Modified: 2012-05-04
Application.VBE.VBProjects(3) gives the third vbaproject
but order may change. I have a project called
VBAProject(proj.xla), since it is third one for now
it works, but how can I use the name to get this project.
I tried
Application.VBE.VBProjects(proj.xla) and
Application.VBE.VBProjects("proj.xla") did not work.
I used item name to verify, but all names gives VBAProject
not a specific name. How??? thanks
0
Comment
Question by:has
2 Comments
 
LVL 3

Accepted Solution

by:
frazer earned 100 total points
Comment Utility
hi,

You are very close omit the .xla and it should work fine.

eg

Sub test()
    MsgBox Application.VBE.VBProjects("funcres").Name
End Sub

Regards

Frazer
0
 

Author Comment

by:has
Comment Utility
VBAProject(proj.xla), shows name as VBAProject
so I changed it to proj, then it shows
proj(proj.xla), now I can use Application.VBE.VBProjects("proj")
but nor because of the file proj.xla, but project name is proj.
there should be a way of getting it directly from the file name
thanks alot for the help. but if you have a comment, please
do send it, I need to undrsand this better may be.
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Problem: You created a new custom form in Outlook for your contacts (added fields, deleted fields, changed the layout of fields, whatever) and made it the default form for contacts. The good news is that all new contacts will utilize the new form. T…
Recently Microsoft released a brand new function called CONCAT. It's supposed to replace its predecessor CONCATENATE. But how does it work? And what's new? In this article, we take a closer look at all of this - we even included an exercise file for…
The view will learn how to download and install SIMTOOLS and FORMLIST into Excel, how to use SIMTOOLS to generate a Monte Carlo simulation of 30 sales calls, and how to calculate the conditional probability based on the results of the Monte Carlo …
The viewer will learn how to create a normally distributed random variable in Excel, use a normal distribution to simulate the return on an investment over a period of years, Create a Monte Carlo simulation using a normal random variable, and calcul…

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now