projectile
Board Regular
- Joined
- Dec 14, 2007
- Messages
- 193
Hi
I have an excel sheet with a list name ranges in entire workbook, and wanted to create a macro, so that when the user click on the one of these cells in sheet, it would jump to the named range.
e.g. the value of cell A1 is septweek1. septweek1 is actually a named range that points to =dept1!$B$6
The column that contains the list of named ranges is A:A
this is the code I have tried, but doesn't work
I have an excel sheet with a list name ranges in entire workbook, and wanted to create a macro, so that when the user click on the one of these cells in sheet, it would jump to the named range.
e.g. the value of cell A1 is septweek1. septweek1 is actually a named range that points to =dept1!$B$6
The column that contains the list of named ranges is A:A
this is the code I have tried, but doesn't work
Code:
Private Sub Worksheet_Activate()
Dim a As String
a = ActiveCell.Value
Application.Goto Reference:=a
End Sub