D
dew
I'm a novice Excel VBA programmer and way below that with Project VBA, so
please help because I'm spinning my wheels.
I want to identify if something is a Summary task and put a flag to that
effect in another column. I've got the id part, but not the flag to another
column. Here's my code:
Sub TestFont()
Dim T As Task
TableEdit Name:="&Entry", TaskTable:=True, NewName:="", FieldName:="",
NewFieldName:="Text14", Title:="Font", Width:=10, Align:=2, ShowInMenu:=True,
LockFirstColumn:=True, RowHeight:=2, ColumnPosition:=0, AlignTitle:=1
TableApply Name:="&Entry"
For Each T In ActiveProject.Tasks
If Not (T Is Nothing) Then
If T.Summary Then
SetTaskField Field:="Text14", Value:="summary"
'MsgBox T.Name
End If
End If
Next T
End Sub
please help because I'm spinning my wheels.
I want to identify if something is a Summary task and put a flag to that
effect in another column. I've got the id part, but not the flag to another
column. Here's my code:
Sub TestFont()
Dim T As Task
TableEdit Name:="&Entry", TaskTable:=True, NewName:="", FieldName:="",
NewFieldName:="Text14", Title:="Font", Width:=10, Align:=2, ShowInMenu:=True,
LockFirstColumn:=True, RowHeight:=2, ColumnPosition:=0, AlignTitle:=1
TableApply Name:="&Entry"
For Each T In ActiveProject.Tasks
If Not (T Is Nothing) Then
If T.Summary Then
SetTaskField Field:="Text14", Value:="summary"
'MsgBox T.Name
End If
End If
Next T
End Sub