keldorn has asked for the wisdom of the Perl Monks concerning the following question:
Hi, evrybody, I'm new on this forum so sorry for all mistakes. I have a problem with perl script for ms project. I can't add new task in different row, only add after last one is possible Please help me.
use Win32::OLE; use Win32::OLE::Variant; use Win32::OLE::Const 'Microsoft Project'; use Win32::OLE::NLS qw( :LOCALE :DATE :TIME ); use Data::Dumper; use Cwd; my $cwd = getcwd; my $mpp = $cwd."\/EUCD_SCHED.mpp"; #EUCD_SCHED my $app = Win32::OLE->GetObject($mpp) or die "Couldn't open project"; my $project = $app->Projects(1); my $noOfTask = $app->Tasks->Count(); # my $selectedTask = $app->SelectRow(64); #RowInsert EditInsert if($app->Tasks(70)->{'EditInsert'}) { print "\n>>>> OK <<<<\n"; } else { print "\n>>>> no OK <<<<\n"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: MS Project
by GrandFather (Saint) on Feb 16, 2012 at 00:04 UTC | |
by keldorn (Initiate) on Feb 16, 2012 at 08:03 UTC | |
by keldorn (Initiate) on Mar 02, 2012 at 21:52 UTC |