none
How do I read a Task Enterprise custom field in a macro RRS feed

  • Question

  • Please guide me on how to read a Task Enterprise custom field in a macro.

    tsk , which property will give me the value of the task level enterprise custom field I have in open/active project. Also after writing this macro how do I deploy that I can test from my projects (Only my) not globally for now. Please guide. What I need to do is validate the user entry on the custom field and tell them that entry needs to be in "AA" format..I should not allow them to save such a project that do not match the format

     Dim tsk As Task
        For Each tsk In ActiveProject.Tasks
            Debug.Print tsk.Name

     

    next

    Wednesday, February 9, 2011 4:46 PM

Answers

  • Hi,

    1. Use teh fieldnametofieldconstant method to find the fieldid

    2. Use tsk.getfield(fieldid)

    Greetings,

    • Marked as answer by Jim Corbin Thursday, February 10, 2011 12:39 AM
    Wednesday, February 9, 2011 7:55 PM
    Moderator

All replies

  • Hi,

    1. Use teh fieldnametofieldconstant method to find the fieldid

    2. Use tsk.getfield(fieldid)

    Greetings,

    • Marked as answer by Jim Corbin Thursday, February 10, 2011 12:39 AM
    Wednesday, February 9, 2011 7:55 PM
    Moderator
  • thanks I was able to figure that out--I appreciate your repsonse
    Wednesday, February 9, 2011 8:13 PM