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
 
Top