Results 1 to 6 of 6

Thread: Excel 2007 help - Hyperlinks

  1. #1
    Now with added Ruffus Dog Tattysnuc's Avatar
    Join Date
    Feb 2006
    Location
    Liverpool
    Posts
    1,373
    Thanks
    283
    Thanked
    207 times in 133 posts
    • Tattysnuc's system
      • Motherboard:
      • Asus 570X Strix F
      • CPU:
      • 3900X @ Stock
      • Memory:
      • 32Gb Rysen C18 Corsair
      • Storage:
      • 2x 1TB nvme
      • Graphics card(s):
      • 2080 ti under Bykski water
      • PSU:
      • eVGA 850W
      • Case:
      • TT Core 5
      • Operating System:
      • Win 10 Pro
      • Monitor(s):
      • Lg 43"
      • Internet:
      • Utility Warehouse

    Excel 2007 help - Hyperlinks

    Hi,

    I've created a spreadsheet which is linked to the Extreme Overclockers folding web page. The page is dynamically created and contains hyperlinks to further information pages which I'd like to read into a cell.

    See: Folding Stats

    I actually want to use in Excel the hyperlink data and not the Username as this contains a user number which is more useful to me.

    For example, user 1stRaven has the hyperlink http://folding.extremeoverclocking.c...hp?s=&u=408507 attached to his name, but I cannot find how to do this. Ideally I want to extract this text to a cell so I can then identify the user number and then use this to create another query of the site.

    Anyone got any ideas?

    Mike
    (Tattysnuc)
    Join the HEXUS Folding @ home team

  2. #2
    Asleep
    Join Date
    Jan 2009
    Posts
    344
    Thanks
    27
    Thanked
    38 times in 34 posts
    • Repressor's system
      • Motherboard:
      • Asus M4A89GTD PRO
      • CPU:
      • AMD Phenom II X6 1090T
      • Memory:
      • 12GB Corsair
      • Storage:
      • 500GB Samsung HD502HJ
      • Graphics card(s):
      • ATI HD5850
      • PSU:
      • 620W Seasonic
      • Case:
      • Antec 300
      • Operating System:
      • Windows 7
      • Monitor(s):
      • Dell U2311H X3

    Re: Excel 2007 help - Hyperlinks

    http://folding.extremeoverclocking.c...tRaven&t=69776

    This displays the User Number halfway down the page. You can probably work out how to extract that if you have the time...

  3. Received thanks from:

    Tattysnuc (01-06-2011)

  4. #3
    Now with added Ruffus Dog Tattysnuc's Avatar
    Join Date
    Feb 2006
    Location
    Liverpool
    Posts
    1,373
    Thanks
    283
    Thanked
    207 times in 133 posts
    • Tattysnuc's system
      • Motherboard:
      • Asus 570X Strix F
      • CPU:
      • 3900X @ Stock
      • Memory:
      • 32Gb Rysen C18 Corsair
      • Storage:
      • 2x 1TB nvme
      • Graphics card(s):
      • 2080 ti under Bykski water
      • PSU:
      • eVGA 850W
      • Case:
      • TT Core 5
      • Operating System:
      • Win 10 Pro
      • Monitor(s):
      • Lg 43"
      • Internet:
      • Utility Warehouse

    Re: Excel 2007 help - Hyperlinks

    That gets a bit convoluted, but it's something to work with....
    Join the HEXUS Folding @ home team

  5. #4
    Asleep
    Join Date
    Jan 2009
    Posts
    344
    Thanks
    27
    Thanked
    38 times in 34 posts
    • Repressor's system
      • Motherboard:
      • Asus M4A89GTD PRO
      • CPU:
      • AMD Phenom II X6 1090T
      • Memory:
      • 12GB Corsair
      • Storage:
      • 500GB Samsung HD502HJ
      • Graphics card(s):
      • ATI HD5850
      • PSU:
      • 620W Seasonic
      • Case:
      • Antec 300
      • Operating System:
      • Windows 7
      • Monitor(s):
      • Dell U2311H X3

    Re: Excel 2007 help - Hyperlinks

    Being handed the answer takes the fun out of the hard work and the satisfaction of getting it to work!

  6. #5
    Now with added Ruffus Dog Tattysnuc's Avatar
    Join Date
    Feb 2006
    Location
    Liverpool
    Posts
    1,373
    Thanks
    283
    Thanked
    207 times in 133 posts
    • Tattysnuc's system
      • Motherboard:
      • Asus 570X Strix F
      • CPU:
      • 3900X @ Stock
      • Memory:
      • 32Gb Rysen C18 Corsair
      • Storage:
      • 2x 1TB nvme
      • Graphics card(s):
      • 2080 ti under Bykski water
      • PSU:
      • eVGA 850W
      • Case:
      • TT Core 5
      • Operating System:
      • Win 10 Pro
      • Monitor(s):
      • Lg 43"
      • Internet:
      • Utility Warehouse

    Re: Excel 2007 help - Hyperlinks

    Shame it wasn;t the answer I was looking for though. gonna have to re-acquaint myself with VBA which I loath doing because it takes me so long to get back into it.
    Join the HEXUS Folding @ home team

  7. #6
    Now with added Ruffus Dog Tattysnuc's Avatar
    Join Date
    Feb 2006
    Location
    Liverpool
    Posts
    1,373
    Thanks
    283
    Thanked
    207 times in 133 posts
    • Tattysnuc's system
      • Motherboard:
      • Asus 570X Strix F
      • CPU:
      • 3900X @ Stock
      • Memory:
      • 32Gb Rysen C18 Corsair
      • Storage:
      • 2x 1TB nvme
      • Graphics card(s):
      • 2080 ti under Bykski water
      • PSU:
      • eVGA 850W
      • Case:
      • TT Core 5
      • Operating System:
      • Win 10 Pro
      • Monitor(s):
      • Lg 43"
      • Internet:
      • Utility Warehouse

    Re: Excel 2007 help - Hyperlinks

    Got a reply on the MS forums which defines 2 new functions in Excel (VBA)

    To extract the full hyperlink...

    Function GetHyperlink(FromCell As Range)
    Dim xHyper As Hyperlink
    Application.Volatile
    GetHyperlink = ""
    For Each xHyper In Sheets(Application.Caller.Parent.Name).Hyperlinks
    If Not Intersect(FromCell, xHyper.Range) Is Nothing Then
    GetHyperlink = xHyper.Address
    Exit Function
    End If
    Next xHyper
    End Function

    Or to extract the user ID (if it is always at the end of the hyperlink address):

    Function GetHyperlinkUser(FromCell As Range)
    Dim xHyper As Hyperlink
    Application.Volatile
    GetHyperlinkUser = ""
    For Each xHyper In Sheets(Application.Caller.Parent.Name).Hyperlinks
    If Not Intersect(FromCell, xHyper.Range) Is Nothing Then
    GetHyperlinkUser = xHyper.Address
    If GetHyperlinkUser <> "" Then
    Dim TheWords
    TheWords = Split(GetHyperlinkUser, "=")
    GetHyperlinkUser = TheWords(UBound(TheWords))
    End If
    Exit Function
    End If
    Next xHyper
    End Function

    How brilliant is that! Now I have a new function that can extract the user code from the end of the Hyperlink in the folding tables. Yay for me!
    Join the HEXUS Folding @ home team

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 28
    Last Post: 06-02-2009, 11:16 PM
  2. Replies: 13
    Last Post: 22-12-2007, 12:28 AM
  3. OSPL (Omega Sektor Proffesional League)
    By Tasty in forum HEXUS News
    Replies: 0
    Last Post: 04-10-2007, 12:27 PM
  4. Replies: 2
    Last Post: 08-05-2007, 09:26 AM

Posting Permissions

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