Hello,
We have a complex VB code that loads projects from our project planning to MS Project. In 2003 it was quite fast (~29s) but in version 2007 (and in 2010 it is not better) the same load takes (~70s).
I have profiled the code and found out that the main regression comes with the Period object. When we open a period of a calendar and set its:
oPeriod.Working = False
it probably triggers some events that were not in 2003. The Working property assignment (12560x) for took 0.4s in 2003, in 2007 it takes for the same number of hits 16.7s . In 2007 the assignment takes longer each next operation.
My question is what can I do to avoid the overhead? I have Application.Calculation set to manual, I also tried UndoLevel set to 1, disabled screen updating, but I had no success.
Thanks in advance,
Marek