Object required (Error 424) 
Author Message
 Object required (Error 424)

This must be so simple, but...  I want Rescurs1 to call
Rescurs2.  Thanks

Sub Recurs1()
For Each T In ActiveProject.Tasks
  If T.OutlineLevel = 1 Then
    Recurs2 (T)
  End If
Next T
End Sub

Sub Recurs2(ts)
If ts.Summary Then
   ts.Text1 = "SUM"
Else
   ts.Text1 = "DET"
End If
End Sub



Tue, 06 Apr 2004 22:00:37 GMT  
 Object required (Error 424)
Hi Jordan,
I think you have a blank task in your active project, which is read as
Nothing and will generte the message 424
Please see below for the correction
HTH
Jan

Quote:
> This must be so simple, but...  I want Rescurs1 to call
> Rescurs2.  Thanks

> Sub Recurs1()
> For Each T In ActiveProject.Tasks

if not T is Nothing then
Quote:
>   If T.OutlineLevel = 1 Then
>     Recurs2 (T)
>   End If
end if
> Next T
> End Sub

> Sub Recurs2(ts)
> If ts.Summary Then
>    ts.Text1 = "SUM"
> Else
>    ts.Text1 = "DET"
> End If
> End Sub



Wed, 07 Apr 2004 00:11:44 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Object required (error #424)

2. object required (error 424) when running the exe file on other PC

3. Object required (error #424)??

4. Object required (error 424)

5. Object Required Error #424

6. Automation error... Error 424, Object Required

7. Error Starting application executable (error 424 - Object required)

8. run-time error 424 object required

9. Run-time error '424': Object required

10. Runtime error 424: Object required

11. Error 424 Object Required

12. Run-Time error '424': object Required

 

 
Powered by phpBB® Forum Software