Excel hyperlink to a named range

mcwilson

New Member
Joined
Jun 21, 2011
Messages
19
Hello all-

I have a list of dates in column A. In column B, i display the month name (=month(A1)). In the same workbook i have a calendar displaying each month. Each month's calendar has a section that is named. January is "January", February is "February", etc.
I want a user to be able to put in a date in column A, then have a hyperlink in column C that will take them to the specific month's calendar.
I.E. if A1 is 2/1/11, I have B1 read "February", and I want C1 to have a hyperlink to February. But C1 needs to go to a different month if A1 is changed....


Ideas?

Thanks in advance!
 

Excel Facts

Which Excel functions can ignore hidden rows?
The SUBTOTAL and AGGREGATE functions ignore hidden rows. AGGREGATE can also exclude error cells and more.
Instead of having a hyperlink, why not use the selection change event when cell C1 is selected to goto the named reference that is in cell B1

Code:
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
 If Target.Address = "$C$1" Then
  Application.Goto Reference:=Range("B1").Text
 End If
End Sub
 
Upvote 0
If possbile, i would like to use a formula as i have to do this throughout the entire worksheet and workbooks...i do not want to keep altering the code as this could get messy
 
Upvote 0

Forum statistics

Threads
1,224,503
Messages
6,179,136
Members
452,890
Latest member
Nikhil Ramesh

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