Z
Zoo
Hi,
The following code enumerates the field id.
I want to know a field name like 'Task Name' , 'Duration' from the field id.
How can I get the name?
Sub Test()
Dim i As Long
Dim id As Long
Dim ColumnName As String
For i = 1 To ActiveProject.TaskTables(1).TableFields.Count
id = ActiveProject.TaskTables(1).TableFields(i).Field
Debug.Print i, id
ColumnName = "" 'I dont't know how to get this from id.
Next
End Sub
-- Result --
1 188743703
2 188743885
3 188743694
4 188743709
5 188743715
6 188743716
7 188743727
8 188743729
The following code enumerates the field id.
I want to know a field name like 'Task Name' , 'Duration' from the field id.
How can I get the name?
Sub Test()
Dim i As Long
Dim id As Long
Dim ColumnName As String
For i = 1 To ActiveProject.TaskTables(1).TableFields.Count
id = ActiveProject.TaskTables(1).TableFields(i).Field
Debug.Print i, id
ColumnName = "" 'I dont't know how to get this from id.
Next
End Sub
-- Result --
1 188743703
2 188743885
3 188743694
4 188743709
5 188743715
6 188743716
7 188743727
8 188743729