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
In reply to Modifying Excel hyperlink using PERL and OLE.pm by SplashCD
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |