Word VBA >> Getting Project name from properties?

by JB » Wed, 28 Jul 2004 21:32:25 GMT

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


Word VBA >> Getting Project name from properties?

by JB » Wed, 28 Jul 2004 22:03:44 GMT





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

ProjectName = ThisDocument.VBProject.Name
Cheers
J



Similar Threads

1. difference of worksheet name and (name) property in VBA properties - Excel

2. Modify project properties company name in VBA

Hi,

I'm having a hard time determining how to modify the company field in the 
project properties summary tab through VBA. I'm trying to create a macro that 
would modify this field if there were more than 16 characters.

Any help is appreciated.

3. Empty properties shows property name when printing - Word Document management

4. Getting Named Color Names and values????

How can I get value pairs of named colors and the color they represent?

I want to easily get these colornames and then their associated color values
into a file so I can add to the list and offer this list in an owner drawn
listbox for the user to choose colors.

thanks,

Shane


5. Getting domain name twice in user name .{WMI Query}

6. How to set "List Font names in their names" property in Word 2007

In word 2003 we can set this property from
Tools->customize->Options->Other->"List Font names in their font".

Where do we set it in Office 2007?

7. Propertygrid, associate property name with textual name possible? - VB.Net

8. Check Control's property name exist or name

Hi,

I have created a form , and have a different  controls on them. I want to
check that control has particular property name or not.

I wrote following code , tell me what I  missing :-
Dim ctl As Control

For Each ctl In Me.ParentForm.Controls

    ' IsPropery(ctl.

Next

Thanks in advance.

Hardik Shah