Hi,
I am trying to use a macro to create a custom status field, using the text2 field. I tried using the record function which produced this code:
Sub Macro1()
' Macro Macro1
'
SelectTaskColumn Column:="Task Mode"
TableEditEx Name:="&Entry", TaskTable:=False, NewName:="", NewFieldName:="Text2", Width:=9, ShowInMenu:=True, LockFirstColumn:=True, DateFormat:=255, RowHeight:=1, ColumnPosition:=1
TableApply Name:="&Entry"
TableEditEx Name:="&Entry", TaskTable:=False, NewName:="", FieldName:="Text2", NewFieldName:="Text2", Title:="", ColumnPosition:=1
TableApply Name:="&Entry"
SelectTaskField Row:=1, Column:="Text2"
End Sub
When I recorded the macro, the desired new field was produced. However, when I try to run the code as a macro within a new project, it errors on
SelectTaskField Row:=1, Column:="Text2"
Run-time error '1101': The argument value is not valid
I have a second macro, which will be combined once I get over this error, that renames the field and assigns G-Y-R indicators.
The reason I am using a macro is that multiple people will be using adding the status to their reports.
Any assistance is appreciated!