Reading a formula for a Resource Enterprise Custom Field (ECF)

J

James

The following works reading a Task Entity but not a Resource Entity:

ecfReferenceIndex = FieldNameToFieldConstant("ECF name")

testStr = CustomFieldGetFormula(ecfReferenceIndex)

How do I read the formula for a Resource ECF?
 
R

Rod Gill

Hi,

If you look at help you can see you need a Field type constant. Try:
ecfReferenceIndex = FieldNameToFieldConstant("ECF name",pjResource)

--

Rod Gill
Microsoft MVP for Project

Author of the only book on Project VBA, see:
http://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