t.start = **** or T.Finish = *****

B

Bob Inwater

I am trying to build a Project File on the fly. Almost everything works great
except that I will be darned if I can manipulate ANY date fields from VBA.
Below is a snip of the dev code. Ideas????


For Each T In ActiveProject.Tasks
T.Notes = someNotes
T.Start = someDate
T.Text1 = someData
Next T

Also kind of annoying but not the end of the world….. I am having to
populate the notes and such in the above structure. I could not figure out
how to access these fields at the time of creation. I wanted to do something
like

myProj.Tasks.Add (x)
t.notes = whatever
 
J

JackD

As you know, project calculates the task start dates based on things like
project start date and predecessors etc.
If you want the date to stick you need to set a constraint.
You need to set both a constraint date and a constraint type.
Then the start will obey the constraint to whatever degree possible.
Generally it is a bad idea to set constraints (hard dates) in project
because then project no longer can effectively calculate the schedule. That
is what it is supposed to be used for.
 
J

Jan De Messemaeker

Hi,

And as for your last question:

Set Nutask=activeproject.tasks.add
Nutask.Text22="This is how to do it"

HTH
 
B

Bob Inwater

Thanks Jack,

It appears that “I could not see the forest for the treesâ€.
 

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