Capturing a task id

M

meg99

using 2003. I have 46 tasks in a schedule. Task 41 is the Launch
date. Everything prior to that is backward planned from that date. I
have a user form in which the user enters the Launch date. I want to
find the launch task and change the start date. Here is some of the
code:

EditGoTo ID:=1
Find Field:="Name", Test:="equals", Value:="Launch"
Set Tsk = ActiveCell.Task
TaskID = Tsk.Application.ActiveCell.Task
launchdate = Format(launchdate, "mm, dd, yy")
Tsk.Start = launchdate ' launchdate comes from the user form

Problem: Although "Find Field" finds the correct task, TaskID
registers as 45 instead of 41. Consequently, the launchdate is set on
the wrong task.

anybody have a clue?

meg99
 

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