roshmont has asked for the wisdom of the Perl Monks concerning the following question:
#!/usr/bin/perl use strict; use warnings; use Win32::OLE; my $word = Win32::OLE->new('Word.Application') or die $!; $word->{'Visible'} = 1; my $document = $word->Documents->Add; my $selection = $word->Selection; $selection->TypeText("Click here"); my $range = $word->ActiveDocument->Content; $document->Hyperlinks->Add({ Anchor => $range, Address => "http://www.perlmonks.org" });
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Setting Range using Win32:OLE
by chargrill (Parson) on Feb 03, 2006 at 22:10 UTC | |
|
Re: Setting Range using Win32:OLE
by traveler (Parson) on Feb 03, 2006 at 22:59 UTC | |
by roshmont (Initiate) on Feb 07, 2006 at 02:55 UTC |