none
Access task or resource fields in global.mpt RRS feed

  • Question

  • Hi,

    I'd like to access resource and task fields in the global.mpt file (not thru the organiser, but thru VBA).

    The following example code gives me task fields that refer to the project file and not global.mpt:

    Debug.Print vbCrLf & "Task Text fields:" & vbCrLf
    For i = 1 To 30
        c = FieldNameToFieldConstant("Text" & i, pjTask)        
        Debug.Print "Text" & Format(i, "00") & ":" & CustomFieldGetName(c)
    Next i

    Application.GlobalTaskTables and other stuff give me the task tables in global.mpt. Problem is, there is no Application.GlobalTaskTFields :-/

    Anyone with a hint? Searching the forum didn't find anything.

    TIA, Stefan.


    • Edited by swa72 Friday, March 13, 2020 4:16 PM
    Friday, March 13, 2020 4:15 PM

All replies