T
TroyS
In a macro, i'm trying to sum up a task level number (EnterpriseNumber1) and
then assign it to a Project Level Number (EnterpriseProjectNumber1)
The Summing works correctly, but i can't assign the sum to
EnterpriseProjectNumber1...any ideas?
Dim T As Task ' Task object used in For Each loop
Dim AuthorizedSum As Integer ' Count of Authorized Releases
AuthorizedSum = 0
For Each T In ActiveProject.Tasks
If T Is Nothing Then
GoTo Line1
Else
AuthorizedSum = AuthorizedSum + T.EnterpriseNumber2
End If
Line1:
Next T
'Put ApprovedSum to Project Enterprise Number1
'T.EnterpriseProjectNumber1 = AuthorizedSum
Debug.Print AuthorizedSum & " = AuthorizedSum"
'T.EnterpriseProjectNumber1 = AuthorizedSum
End Sub
then assign it to a Project Level Number (EnterpriseProjectNumber1)
The Summing works correctly, but i can't assign the sum to
EnterpriseProjectNumber1...any ideas?
Dim T As Task ' Task object used in For Each loop
Dim AuthorizedSum As Integer ' Count of Authorized Releases
AuthorizedSum = 0
For Each T In ActiveProject.Tasks
If T Is Nothing Then
GoTo Line1
Else
AuthorizedSum = AuthorizedSum + T.EnterpriseNumber2
End If
Line1:
Next T
'Put ApprovedSum to Project Enterprise Number1
'T.EnterpriseProjectNumber1 = AuthorizedSum
Debug.Print AuthorizedSum & " = AuthorizedSum"
'T.EnterpriseProjectNumber1 = AuthorizedSum
End Sub