Solved

Application.VBE.VBProjects(i)

Posted on 1998-10-22
2
1,687 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
ID: 1614119
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
ID: 1614120
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Outlook 2016 hangs on the Launch Screen 3 59
Office.Com /myAccount 9 41
Info Path 2013 with Office 2016 Pro Plus and Standard 2016 1 49
COPY from excel to notepad 3 37
In case Office 2010 has not been deployed in your environment, this article may be quite useful. In our office, we wanted a way to deploy Microsoft Office Professional Plus 2010 through an automated batch file via logon script. This article is docum…
This article will show you how to use shortcut menus in the Access run-time environment.
The viewer will learn how to make their project stand out over others by learning how to change colors and shapes, add spaces, change directions, and add bullets to their charts.
The viewer will learn how to simulate a series of sales calls dependent on a single skill level and learn how to simulate a series of sales calls dependent on two skill levels. Simulating Independent Sales Calls: Enter .75 into cell C2 – “skill leve…

867 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

19 Experts available now in Live!

Get 1:1 Help Now