Getting Project name from properties?

J

JB

HI Folks,
Can anyone tell me how I can get the Project name from the properties of
the project?

e.g. say my project is called myproject and I want to add a ref, my
current code says Project1.ThisDocument.VBProject.References.AddFromFile
RefName

Any pointers?

Cheers
J
 
J

JB

JB said:
HI Folks,
Can anyone tell me how I can get the Project name from the properties of
the project?

e.g. say my project is called myproject and I want to add a ref, my
current code says Project1.ThisDocument.VBProject.References.AddFromFile
RefName

Any pointers?

Cheers
J
Oh God just Ignore that last post please...I'm not functioning well today..

ProjectName = ThisDocument.VBProject.Name
Cheers
J
 

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

Top