in reply to Re: Re: Win32::Ole selection
in thread Win32::Ole selection

Solved it!
use Win32::OLE; my $word = Win32::OLE->new('Word.Application'); $word->{Visible} = 1; my $document=$word->Documents->Add; $word->Selection->TypeText("Some Text"); $word->Selection->Paragraphs("1"); $document->Select->ActiveDocument->Paragraphs(1)->range;
Cheers.

Replies are listed 'Best First'.
Re: Re: Re: Re: Win32::Ole selection
by Bloodelf (Beadle) on Dec 11, 2001 at 02:48 UTC
    correction.....
    use Win32::OLE; my $word = Win32::OLE->new('Word.Application'); $word->{Visible} = 1; my $document=$word->Documents->Add; $word->Selection->TypeText("Some Text"); $word->ActiveDocument->Paragraphs(1)->range->Select;
    (...Doh!)