Help creating hyperlink to other worksheets from cell values

mits

New Member
Joined
May 2, 2003
Messages
16
I have a workbook with a summary worksheet and a seperate worksheet for every computer in the office.

The worksheet name is the serial number of the computer. Each computer worksheet is copied from a template so they are all the same.

I have a macro that copies certain bits of info from each worksheet and copies into columns on the summary worksheet.

One of the columns in the summary worksheet is the serial number. All the info in the summary worksheet are links to the seperate worksheet.(not values)

I would like to automatically create / convert the serial number cell to a hyperlink that opens the specific worksheet.
Any ideas?

Thanks in advance
 

Excel Facts

How can you automate Excel?
Press Alt+F11 from Windows Excel to open the Visual Basic for Applications (VBA) editor.
Upvote 0
You can do it without hyperlinks.

Limit the Selection_Change Event for that Sheet to the column that has your ID#'s

If that workbook also has sheets named for every ID# then the Event will load the target cells value into:

Sheets(Target.Value).Select

And take you to that sheet when you click the cell with the ID#



Private Sub Worksheet_SelectionChange(ByVal Target As Range)
'The lists Sheet Module, like: Sheet1.

If Target.Column <> 1 Then Exit Sub

If (Target.Value <> xlNull And Target.Column = 1) Then Sheets(Target.Value).Select
End Sub
 
Upvote 0

Forum statistics

Threads
1,214,823
Messages
6,121,777
Members
449,049
Latest member
greyangel23

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