Forum Discussion

Lorenzo Kim's avatar
Lorenzo Kim
Bronze Contributor
Apr 04, 2018
Solved

table of contents

  • Matt Mickle's avatar
    Apr 04, 2018

    Lorenzo you don't need VBA to do what you require.

     

    Simply Right Click in Cell C3 > Link > Insert Link > Place In This Document > Select the sheet you want to navigate to.

     

    If you want VBA this will do the trick.... put this code in the TOC code Module:

     

    Private Sub Worksheet_SelectionChange(ByVal Target As Range)
    
        Select Case Target.Address
            Case "$C$3": Sheets("Sheet1").Activate
            Case "$C$4": Sheets("Sheet2").Activate
            Case "$C$5": Sheets("Sheet3").Activate
            Case "$C$6": Sheets("Sheet4").Activate
        End Select
    
    End Sub
    

     

     

Resources