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
 
Top