Hi all

yesterday i had some help with a macro to create a list of references. I would like to take this one step further an make each name in the list a hyperlink to the worksheet. The code for the hyper link i con't seem to get it to work. Does anyone have any ideas
VB Code:
  1. Public Sub ListWrkShts()
  2.  
  3.     Dim i As Integer
  4.     Dim x As Integer
  5.     Dim sSheet As String
  6.     Dim oWB As Workbook
  7.    
  8.     Range("B1").Value = "Worksheets List"
  9.  
  10.     x = 2
  11.     Set oWB = ActiveWorkbook
  12.     For i = 2 To oWB.Sheets.Count
  13.         oWB.Sheets(1).Cells(x, 2).Value = oWB.Sheets(i).Name
  14.         ActiveSheet.Hyperlinks.Add Anchor:=oWB.Sheets(1).Cells(x, 2),   Address:="", SubAddress:= _
  15.         oWB.Sheets(i).Name, TextToDisplay:= _
  16.         oWB.Sheets(i).Name
  17.         x = x + 1
  18.     Next
  19.     Set oWB = Nothing
  20.    
  21.     Sort
  22.     Range("A1").Select
  23.    
  24. End Sub

Can anyone help