Hyperlinks

ps50150

New Member
Joined
Jan 22, 2018
Messages
6
Hi

I have a set of data with dates across the columns for each day going for a whole year for example

In the first columns I want to put today's date for example 18-Mar-19, then i want to hyperlink that so it goes to the correct column in Excel which could be for example column ZG, cell reference doesn't matter too much can be "ZG3"as an example.

I can't get the hyperlink to be dynamic, ideally I want to use the Today() formula and the excel hyperlink moves 1 column as each day passes....

Let me know if an example helps!

Cheers
 

Excel Facts

Best way to learn Power Query?
Read M is for (Data) Monkey book by Ken Puls and Miguel Escobar. It is the complete guide to Power Query.
If your saying you have all the dates for this year for example in Row(1) starting in Column(B)

And you want to enter a date in Range("A1") and then you want the active cell to be the cell with the date you entered in Range("A1")

Here is a sheet event script that will do what you want.

I know of no way how this can be done with just a simple Hyperlink

This is an auto sheet event script
Your Workbook must be Macro enabled
To install this code:
Right-click on the sheet tab
Select View Code from the pop-up context menu
Paste the code in the VBA edit window

Now when you enter a date in Range("A1") the script will run

Code:
Private Sub Worksheet_Change(ByVal Target As Range)
'Modified  3/19/2019  12:57:24 AM  EDT
If Target.Address = Range("A1").Address Then
Dim LastColumn As Long
LastColumn = Cells(1, Columns.Count).End(xlToLeft).Column
Dim SearchString As String
Dim SearchRange As Range
SearchString = Target.Value
Set SearchRange = Cells(1, 2).Resize(, LastColumn).Find(SearchString, LookIn:=xlValues, lookat:=xlWhole)
If SearchRange Is Nothing Then MsgBox SearchString & "  Not Found": Exit Sub
SearchRange.Select
End If
End Sub
 
Upvote 0

Forum statistics

Threads
1,214,646
Messages
6,120,717
Members
448,985
Latest member
chocbudda

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