I have an Excel spreadsheet with html links in one column. Links are generated by the perl script through the Win32::OLEsame way (inside the loop with index $ i):
my $range = $Sheet->Range("B".$row);
my $link = "http://foobar.com/show.pl?id=$i";
$Sheet->Hyperlinks->Add({Anchor=>$range,Address=>$link,TextToDisplay=>"Link to $i"});
Currently, every time I click one of these links, it opens in a new browser tab. Since there are many of these links, I am finishing work with 20 tabs after working with the sheet for a while. It’s a pain in the back because I periodically have to go through and close them.
Is there a way to open these links in one browser tab? I do not know if it is possible to specify the HTML equivalent of an anchor target with a constant name using the method Hyperlinks->Add, or even if it will complete the task.
source
share