+ Reply to Thread
Results 1 to 9 of 9

Extracting Hyperlinks from URL

  1. #1
    Valued Forum Contributor
    Join Date
    03-03-2009
    Location
    UK
    MS-Off Ver
    MS365 Subscription Excel for Mac
    Posts
    1,017

    Extracting Hyperlinks from URL

    Is there a macro that you will point at a URL and it will list all the URL's found on this specific web page.

  2. #2
    Valued Forum Contributor
    Join Date
    03-03-2009
    Location
    UK
    MS-Off Ver
    MS365 Subscription Excel for Mac
    Posts
    1,017

    Re: Extracting Hyperlinks from URL

    Can't find much help online. Anyone know of a macro for this?

  3. #3
    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: Extracting Hyperlinks from URL

    Hello ScabbyDog,

    This macro will list only the HTPP and HTTPS links for the given URL. It will not search deeper than the given URL's page.

    Macro to List Hyperlinks on a Web Page
    Please Login or Register  to view this content.
    Example of Calling the Macro
    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!)

  4. #4
    Valued Forum Contributor
    Join Date
    03-03-2009
    Location
    UK
    MS-Off Ver
    MS365 Subscription Excel for Mac
    Posts
    1,017

    Re: Extracting Hyperlinks from URL

    Thanks Leith.

    The link of the site I'm trying to scrape is http://www.sarugby.co.za/results.asp...&fullview=true

    YOu'll see there that the scores of each game is a link, but for some reason your macro above does not return these URLs but it returns all other URLs.

  5. #5
    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: Extracting Hyperlinks from URL

    Hello ScabbyDog,

    Sorry for the long delay. I am still having issues with posting messages, PMs, and attachments. It apeears I can only send text. For some reason somewhere in the IP chain, I am being blocked for some unknown reason.

    I have the code working but can not post it here. You can download the sample workbook from my MediaFire account.

    Here is the link: https://www.mediafire.com/?pb8bcz4qap45zph

  6. #6
    Valued Forum Contributor
    Join Date
    03-03-2009
    Location
    UK
    MS-Off Ver
    MS365 Subscription Excel for Mac
    Posts
    1,017

    Re: Extracting Hyperlinks from URL

    Thanks Leith. Strangely I am blocked from MediaFire on my IP but will be at a different IP tomorrow so can download it then - unless some kind Forum member would do me the favour of downloading the mediafire link above and posting it within this thread?

  7. #7
    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: Extracting Hyperlinks from URL

    Hello ScabbyDog,

    This just keeps getting better. Still no joy on my end.

  8. #8
    Valued Forum Contributor
    Join Date
    03-03-2009
    Location
    UK
    MS-Off Ver
    MS365 Subscription Excel for Mac
    Posts
    1,017

    Re: Extracting Hyperlinks from URL

    Got it. Works perfectly. Thanks!

  9. #9
    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: Extracting Hyperlinks from URL

    Hello ScabbyDog,

    You're welcome. After 2 1/2 days, I am still not able to post code or attachments. Makes my job so much easier.

+ 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. Extracting hyperlinks from text blocks in cells
    By bigtom123 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 01-13-2015, 04:53 PM
  2. Extracting Hyperlinks from images
    By Jestermedia in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-02-2008, 11:00 AM
  3. [SOLVED] Re: Extracting Hyperlinks
    By brucek in forum Excel General
    Replies: 0
    Last Post: 03-14-2006, 10:35 AM
  4. Extracting Hyperlinks from 4000 graphic records
    By cfc in forum Excel General
    Replies: 0
    Last Post: 03-14-2006, 03:04 AM
  5. [SOLVED] Extracting Hyperlinks
    By Steven Drenker in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 12-11-2005, 02:20 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