+ Reply to Thread
Results 1 to 2 of 2

Need to fetch URL destination from hyperlinks

  1. #1
    Registered User
    Join Date
    05-15-2017
    Location
    JUPITER
    MS-Off Ver
    2013
    Posts
    1

    Need to fetch URL destination from hyperlinks

    Greetings, I have the following problem:

    I have a list of about 10k URLs with links to different sites, for example:

    1 https://www.google.com
    2 https://www.yahoo.com
    3 https://www.bing.com

    Now, obviously, all of the links lead to a page which has a name (google, yahoo, bing, etc.) displayed in browser tabs:

    zIJyc6b.png

    Is it possible to somehow fetch those very names via Excel functionale? What VBA functions should I try to use?

    Thanks in advance

  2. #2
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258

    Re: Need to fetch URL destination from hyperlinks

    Hello excelhatesme2017,

    Welcome to the forum!

    This macro will return the title for each URL in your list. Then macro starts at cell "A1" on the ActiveSheet and goes down to the last URL in the column.

    If the URL is opened successfully then the title is placed to the right of the URL in column "B". You can interrupt the loop by pressing the keys CTRL+BREAK.

    Add a new VBA Module to your VBA Project. Copy and Paste the code below into the new Module.

    Please Login or Register  to view this content.
    Sincerely,
    Leith Ross

    Remember To Do the Following....

    1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.
    2. Thank those who have helped you by clicking the Star below the post.
    3. Please mark your post [SOLVED] if it has been answered satisfactorily.


    Old Scottish Proverb...
    Luathaid gu deanamh maille! (Rushing causes delays!)

+ 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. Copy from static destination & paste to dynamic destination
    By Marbleking in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 12-31-2015, 09:31 AM
  2. [SOLVED] Range containing many hyperlinks is default blue font -fix to be black but keep hyperlinks
    By RedSummer in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-14-2015, 12:01 PM
  3. Excel Hyperlinks in Powerpoint Error - Hyperlinks stripped
    By memsimpson in forum Excel General
    Replies: 0
    Last Post: 05-27-2014, 09:25 AM
  4. Find Hyperlinks, Copy Hyperlinks to alternative sheet, print all hyperlinks
    By matrixpom in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-13-2013, 05:13 PM
  5. Replies: 7
    Last Post: 06-14-2012, 09:44 AM
  6. Using destination filepaths listed in cell contents opposing to coding destination
    By kuraitori in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-22-2009, 01:23 PM
  7. Replies: 0
    Last Post: 05-14-2006, 11:45 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