Help with Hhyperlinks

hurley11b

New Member
Joined
Feb 24, 2011
Messages
2
I have a workbook with about 450 tabs/sheets. In one of them I have the names of approx 400 of the sheets in a column. I need to make a hyperlink in each cell going down that links to the sheet in the workbook. I can do this one by one but am hoping there is a faster way to do it. On the master sheet, all names are in the order that they appear later on in the workbook.:(
 

Excel Facts

Links? Where??
If Excel says you have links but you can't find them, go to Formulas, Name Manager. Look for old links to dead workbooks & delete.
If you right click on the "tab scrolling arrows" (usually to the left of the tabs themselves) you'll get a pop-up list of all the un-hidden sheets in the workbook. You can select from the list to activate any un-hidden sheet. Do you really need to duplicate this functionality with hyperlinks?

Gary
 
Upvote 0
Welcome to MrExcel board....

try this
Code:
Option Explicit

Sub AddHyperlinks()
Dim LR As Long, i As Long, Txt As String

LR = Range("A" & Rows.Count).End(xlUp).Row

    For i = 1 To LR
        Txt = Mid(Cells(i, "A"), 10, InStr(Cells(i, "A"), ">") - 11)
        ActiveSheet.Hyperlinks.Add _
            Anchor:=Cells(i, "A"), _
            Address:=Txt, _
            ScreenTip:=Txt, _
            TextToDisplay:=Cells(i, "A").Text
    Next i

End Sub
 
Upvote 0
Gary,

Yes I do.

Texas Lynn,

Thanks for the help but that is like an alien language to me?

I appreciate you trying
 
Upvote 0

Forum statistics

Threads
1,224,597
Messages
6,179,808
Members
452,944
Latest member
2558216095

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top