For Each Task....

J

Jonathan

Excuse my inexperience here please.....

When I do something along the lines of....

For Each objTask In ActiveProject.Tasks
a=objTask.name
next

The program halts when it comes across an empty task line in the project.

I can fudge over this with the On Error stuff, but there must be a way of
testing that objTask is a valid and filled in task of the project?

Thanks for any help.
 
J

Jan De Messemaeker

Hi Jonathan,

Yes there is:

For each job in activeproject.tasks
if not job is nothing then
job.text1= "That is he solution!"
end if
next job

Greetings,
 
J

Jonathan

Excellent - thanks for that.

Jan De Messemaeker said:
Hi Jonathan,

Yes there is:

For each job in activeproject.tasks
if not job is nothing then
job.text1= "That is he solution!"
end if
next job

Greetings,


--
Jan De Messemaeker
Microsoft Project Most Valuable Professional
http://users.online.be/prom-ade/
+32-495-300 620
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top