Seting value to Enterprise Project Number field

Y

Yoav

I'm trying to set value to an Enterprise Project Number field by:
Application.ActiveProject.Tasks.UniqueID(0).EnterpriseProjectNumber35 = 100
'for example

The problem is that is value is set only to the Project Summary Task. When I
define a formula to that field with the Enterprise Custom fields (in the
Professional), the value to that fields sets the value for all of the tasks
in the project.

What is the way that can help me set the value of the Enterprise Project
Number field value by code, in which this value will be set to the tasks?
 
R

Rod Gill

EnterpriseProjectNumber35 is for Project Summary Tasks only! To set a value
for individual tasks, use: EnterpriseNumber35

EG
ActiveProject.Tasks(1).EnterpriseNumber35=10

--

Rod Gill
Project MVP

NEW!! Project VBA Book, for details visit: www.projectvbabook.com
 

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