T
Toney
Hello. What's wrong with my code? I want to retieve a list of all the fields
in Project 2007, using the following code. What is my object problem?
Sub GetFields()
Dim tField As TableField, fNames As String
Set tField = TableFields.TableField ' I get "object require" on this.
For Each tField In TableFields
fNames = fNames & tField.TableField & vbCrLf
Next tField
MsgBox fNames
End Sub
in Project 2007, using the following code. What is my object problem?
Sub GetFields()
Dim tField As TableField, fNames As String
Set tField = TableFields.TableField ' I get "object require" on this.
For Each tField In TableFields
fNames = fNames & tField.TableField & vbCrLf
Next tField
MsgBox fNames
End Sub