Enterprise fields access in MSP2007

Y

Yoav

The following code was written in MSP2003:
Sub Test()
ActiveCell.Task.EnterpriseProjectDate1 = "1/2/07"
End Sub
Since MSP2007 doesn't hold fields numbers, how can i access Enterprise
Project Date Fields?
 
G

Gérard Ducouret

Hi Yoav,

Look at the Rod Gill's answer dated 28/04/2007:

<<This has changed as there are no default Text, Number and Flag fields any
more, you just create them and attach them to Projects, Tasks, Resources or
Assignments and specify the data type they can hold. In the reporting
database, look at the Views and all View names ending with userview. They
have the custom fields as the last columns.

In VBA use:
msgbox "Custom Field Value= "&
ActiveProject.Tasks(1).GetField(FieldNameToFieldConstant("My Custom Field
Name"))
 

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