I'm trying to transfer the data of a project from MS Excel to MS Project with VBA.
The problem is that, as I'm doing it now, the starting hour of each task is set at 12:00 AM, which gives me problems on the evaluation of the EndDate (assuming that I operate with StartDate and Duration of each activity).
Dim StartDate As Date
For j = 1 To 10000
StartDate = wbAs.Worksheets(i).Cells(j, 2).Value
prProject.Tasks(i).Start = StartDate
i = i + 1
I did not copy the whole code since it is a bit long, I hope it is understandable. Basically, I cycle on each row of an Excel worksheet and I transfer in MS Project the StartDate of each activity, present in the 2nd column.
Doing like that, I'm not able to pass the StartHour, while I'd like to tell MS Project that all the activities are starting at 09:00 AM. Is that possible?
Thanks