Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Application.VBE.VBProjects(i)

Posted on 1998-10-22
2
1,737 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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Using Word 2013, I was experiencing some incredible lag when typing.  Here's what worked for me....
In this article we discuss how to recover the missing Outlook 2011 for Mac data like Emails and Contacts manually.
This video walks the viewer through the process of creating Hyperlinks for the web and other documents. Select the "Insert" tab: Click "Hyperlink":  Type "http://" followed by a web address to reference a website or navigate to a document to ref…
This video shows where to find templates, what they are used for, and how to create and save a custom template using Microsoft Word.

809 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