Extracting info from hyperlink

0 votes
I have a column with more than 200 hyperlinks. Every link point to a sheet in the same file. Is there a way to write the sheet's name in another column to which the hyperlink points?

For example, the First link opens the sheet10, so I want to write in the column on the right "Sheet10"
Feb 2 in Others by Kithuzzz
• 34,760 points
34 views

1 answer to this question.

0 votes

This will offer you an example of how to list the hyperlink targets using VBA:

Sub ListLinks()
    Dim oHl As Hyperlink
    Dim oWs As Worksheet
    For Each oWs In ActiveWorkbook.Worksheets
        For Each oHl In oWs.Hyperlinks
            'Debug.Print oHl.Address
            Debug.Print oHl.SubAddress
        Next
    Next
End Sub
answered Feb 2 by narikkadan
• 59,740 points

Related Questions In Others

0 votes
1 answer
0 votes
1 answer

Extracting tabular data from multiple .xlsx files with inconsistent structures

For a cell that is consistent across ...READ MORE

answered 2 days ago in Others by narikkadan
• 59,740 points
11 views
0 votes
1 answer

Extracting a Variable Number of Letters from a Formula using VBA Code

Please, try the next function: Function extractLetter(rng As ...READ MORE

answered 1 day ago in Others by Kithuzzz
• 34,760 points
10 views
0 votes
1 answer

How is regression testing different from functional testing?

Functional testing is testing a section of code ...READ MORE

answered Feb 18, 2019 in Others by Mythlli
241 views
0 votes
1 answer

Opening Selected Hyperlink DISPLAYING TEXT in Default Browser in MS Excel

Try this code: Sub Open_SelectedTextlinks() If Not ...READ MORE

answered Oct 7, 2022 in Others by narikkadan
• 59,740 points
228 views
0 votes
1 answer

Retrieve epay.info Balance with VBA and Excel

This code should log you in, provided ...READ MORE

answered Sep 5, 2018 in Blockchain by digger
• 26,740 points
575 views
0 votes
1 answer

How to load file to Excel Power query from SFTP site

Currently, I don't think there is a ...READ MORE

answered Dec 3, 2018 in Power BI by Upasana
• 8,620 points
2,548 views
0 votes
1 answer

Using VBA Excel to create a gramatically correct list

The Excel AND function is a logical ...READ MORE

answered Feb 9, 2022 in Others by gaurav
• 22,970 points
148 views
0 votes
1 answer
0 votes
1 answer

Hyperlink changes from # to %20-%20 when clicked in Excel

This is a known issue with MS Excel. Basically, ...READ MORE

answered Nov 19, 2022 in Others by narikkadan
• 59,740 points
128 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP