S
Sam
We have a number of projects that causing the My Tasks error page so I am
attempting to wirte some VBA code that will fix them by changing the Publish
field for each task to "No", publishing the project, then changing it back to
"Yes" and republishing the project. Doing this process manually fixes the My
Tasks error page but I can't seem to get this to work in code.
Here is what I have:
For Each tsk In ActiveProject.Tasks
If Not tsk Is Nothing Then
If Not tsk.Summary Then
tsk.publish = No
End If
End If
Next tsk
This errors with "Object doesn't support this property or method (Error
438)" everytime it hits tsk.publish = No.
Does anyone know what I'm doing wrong?
attempting to wirte some VBA code that will fix them by changing the Publish
field for each task to "No", publishing the project, then changing it back to
"Yes" and republishing the project. Doing this process manually fixes the My
Tasks error page but I can't seem to get this to work in code.
Here is what I have:
For Each tsk In ActiveProject.Tasks
If Not tsk Is Nothing Then
If Not tsk.Summary Then
tsk.publish = No
End If
End If
Next tsk
This errors with "Object doesn't support this property or method (Error
438)" everytime it hits tsk.publish = No.
Does anyone know what I'm doing wrong?