J
Joy
We have the following code to format Start and Finish for each task as
'MM/DD/YYYY':
Dim tsk As Task
For Each tsk In proj.Tasks
' On Error Resume Next
If Not tsk Is Nothing Then
tsk.Text10 = Month(tsk.Start) & "/" & Day(tsk.Start) & "/" &
Year(tsk.Start)
tsk.Text11 = Month(tsk.Finish) & "/" & Day(tsk.Finish) & "/" &
Year(tsk.Finish)
End If
Next tsk
A user reported a case to us and it always throws "Run Time Error: 1004" on
that file. I can see no problem with the Project file. Whichever task format
I select Tools -> Options -> View -> Date Format, I always get the error.
However, I have no issue with other files with the same formats.
can any one give an idea of why?
'MM/DD/YYYY':
Dim tsk As Task
For Each tsk In proj.Tasks
' On Error Resume Next
If Not tsk Is Nothing Then
tsk.Text10 = Month(tsk.Start) & "/" & Day(tsk.Start) & "/" &
Year(tsk.Start)
tsk.Text11 = Month(tsk.Finish) & "/" & Day(tsk.Finish) & "/" &
Year(tsk.Finish)
End If
Next tsk
A user reported a case to us and it always throws "Run Time Error: 1004" on
that file. I can see no problem with the Project file. Whichever task format
I select Tools -> Options -> View -> Date Format, I always get the error.
However, I have no issue with other files with the same formats.
can any one give an idea of why?