R
rafalag
Hi,
I have the following code:
Sub Populate_QC3()
Dim mytask As Task
For Each mytask In ActiveProject.Tasks
If Not (mytask Is Nothing) Then
mytask.EnterpriseProjectNumber1 = mytask.EnterpriseNumber5
End If
Next mytask
End Sub
When I run the macro I receive the following error:
Run-time error '1101':
The argument value is not valid
Can you help me how to correct the code?
Thanks,
Rafal
I have the following code:
Sub Populate_QC3()
Dim mytask As Task
For Each mytask In ActiveProject.Tasks
If Not (mytask Is Nothing) Then
mytask.EnterpriseProjectNumber1 = mytask.EnterpriseNumber5
End If
Next mytask
End Sub
When I run the macro I receive the following error:
Run-time error '1101':
The argument value is not valid
Can you help me how to correct the code?
Thanks,
Rafal