in reply to MS Project

It's likely that few monks use or have access to Microsoft Project. However the general advice for OLE scripting issues is "record a VBA script to do it, then translate the steps". Can you achieve what you want using Microsoft Project's built in macro/scripting support? If so either mimic that script using Perl and OLE, or if you can't make that work show us the VBA that was generated and someone may then be able to help.

True laziness is hard work

Replies are listed 'Best First'.
Re^2: MS Project
by keldorn (Initiate) on Feb 16, 2012 at 08:03 UTC

    Hi, I know about this:) i always record VBA macro it's simlpy way to write something very fast, but this time VBA for MS project is different from VBA for Excel, so I can't translate e.g. 'EditInsert' or 'RowInsert' from VBA to PERL :(

      The answer is:

      my $app = Win32::OLE->GetObject($mpp) or die "Couldn't open project"; my $project = $app->Projects(1); $app->Tasks->Add("task title", $numberOfRow);