sausheong said:
Yes, I'm sorry for not giving clearer information. I'm currently using Ruby
to automate the task (instead of VBA, purely because I'm more familiar with
it) and it basically wraps around the MS Project Object Library, so anything
in VBA would be applicable for me as well. I can create normal tasks using
Task.Add "task_name" but I can't seem to create any blank tasks. I know that
it's merely a formatting issue but the links between the tasks do take into
consideration the blank tasks. When I re-create the tasks, the predecessor
and successor links will be broken if I don't create the blank tasks.
I've tried a hack around it by adding a nameless task e.g. Task.Add only but
it only succeeds in creating a nameless task with a duration of 1 day. If I
set the duration to 0 days, it turns into a milestone!
Thanks for your help in advance!
Sau,
I have never heard of "Ruby" so I can't help you there but if VBA is
equivalent, then the Add Method using for the Task object is all you
need.
I guess I don't understand what kind of "blank" task you are looking
for. In Project, a blank task is simply that, a task with no Task Name
but it will have an ID and a default duration and that blank task's ID
is taken into consideration when links are made. When tasks (including
blank tasks) are added or deleted, the links automatically adjust. So
what's the problem?
John
Project MVP