SplashCD has asked for the wisdom of the Perl Monks concerning the following question:
What is the structure/syntax one would use to edit an Excel cell's hyperlink value, using only Perl and Win32::OLE.pm?
I can read cell values and hyperlinks, and change cell values, but cant figure out how to modify the hyperlink.
Here are some of the things I've tried in vain:
• $worksheet->Range("D39")->Hyperlinks->{Address}="C:\\temp";
• $worksheet->Range("D39")->Hyperlinks->Add({Address => "C:\\temp"});
• $worksheet->Hyperlinks->Add({Address=>'C:\\temp'});
• $worksheet->Hyperlinks->Add({Anchor=>('D39'), Address=>'C:\\temp'});
• $cellObject->Hyperlinks->Add(Range('A2'), 'C:\\temp');
... and my personal favorite ...
$worksheet->Hyperlinks()->Add({ Address => "C:\\temp",
Anchor => Selected,
TextToDisplay => "AutoLink",
});
I'd just like to know what structure will work.
Thanks,
-SplashCD
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Modifying Excel hyperlink using PERL and OLE.pm
by guha (Priest) on Jul 23, 2004 at 18:13 UTC | |
by SplashCD (Initiate) on Jul 23, 2004 at 20:02 UTC | |
by guha (Priest) on Jul 27, 2004 at 07:46 UTC | |
|
Re: Modifying Excel hyperlink using PERL and OLE.pm
by jmcnamara (Monsignor) on Jul 23, 2004 at 23:10 UTC |