+ Reply to Thread
Results 1 to 4 of 4

VBA to create column of hyperlinks and any selected hyperlink in the same tab

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    08-08-2015
    Location
    North Carolina USA
    MS-Off Ver
    MS Office 2016
    Posts
    368

    VBA to create column of hyperlinks and any selected hyperlink in the same tab

    Hi, I have got a list of hyperlinks in column Y of my table, labeled "Link" - Then in column D I am using this formula for users to click on and follow the link =HYPERLINK([Link],"Link") This is working, but each link is opening in a new tab on the default browser (Chrome) - and what I would like to have happen is each link to open in the same tab, if its open.

    I am aware there is a setting that opens new links in the same tab in Chrome but thats not what I want... I only want these link to use the same tab... was thinking there was a way to name that tab and if its open, use it, if its not open, create it...

    does anyone know??

  2. #2
    Forum Contributor frabulator's Avatar
    Join Date
    09-16-2015
    Location
    United States
    MS-Off Ver
    2019
    Posts
    105

    Re: VBA to create column of hyperlinks and any selected hyperlink in the same tab

    I was able to located a similar question in another forum post. The solution appears to be the second answer and not the one voted up.

    I hope this helps
    ~Frab

  3. #3
    Forum Contributor
    Join Date
    08-08-2015
    Location
    North Carolina USA
    MS-Off Ver
    MS Office 2016
    Posts
    368

    Re: VBA to create column of hyperlinks and any selected hyperlink in the same tab

    You are saying this one?

    I am confused as to what I actually need to do here...



    Try using Spreadsheet::WriteExcel

    #!/usr/bin/perl -w
    use strict;
    use Spreadsheet::WriteExcel;

    # Create a new workbook called simple.xls and add a worksheet
    my $workbook = Spreadsheet::WriteExcel->new('Example.xls');
    my $worksheet = $workbook->add_worksheet();

    # The general syntax is write($row, $column, $token). Note that row and
    # column are zero indexed
    # Write a hyperlink
    $worksheet->write(10, 0, 'http://perldoc.perl.org/');
    $worksheet->write(11, 0, 'http://stackoverflow.com/');

    __END__
    the hyperlinks are opened in same browser tabs(works fine in IE,Firefox,Chrome)

  4. #4
    Forum Contributor frabulator's Avatar
    Join Date
    09-16-2015
    Location
    United States
    MS-Off Ver
    2019
    Posts
    105

    Re: VBA to create column of hyperlinks and any selected hyperlink in the same tab

    That was the one I was referring to, yes, however it is a very lengthy post with several solutions to different task and I did not read up on it fully. From everything I found it was the only information on opening internet links in the same tab of the browser without change the 'open in new tabs' setting in the browser itself.

    I have not tested it, but as I said, it was the only (possible) solution I could find for what you are asking. Perhaps someone else will be more knowledgeable on the situation than I

    ~Frab

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Can I use a Hyperlink to send a Workshheet from a selected workbook to a selected E Mail A
    By daviddavid in forum Outlook Programming / VBA / Macros
    Replies: 1
    Last Post: 07-30-2014, 05:14 PM
  2. Replies: 3
    Last Post: 11-12-2012, 10:33 AM
  3. create a column of hyperlinks in one shot
    By m1lreese in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-24-2008, 10:30 PM
  4. How to create a report for selected values in the column
    By Shreeshail Ganiger in forum Excel General
    Replies: 0
    Last Post: 07-29-2006, 12:35 PM
  5. [SOLVED] How to create a report for selected values in the column
    By Shreeshail Ganiger in forum Excel General
    Replies: 0
    Last Post: 07-29-2006, 12:30 PM
  6. Replies: 1
    Last Post: 05-29-2006, 09:53 PM
  7. [SOLVED] Hyperlinks:How can I create the hyperlink so it does work?
    By David Rivera in forum Excel General
    Replies: 1
    Last Post: 02-01-2006, 04:10 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1