automatically open hyperlink at a certain day and time

dougbitt

New Member
Joined
Apr 10, 2019
Messages
1
How can I get excel to open hyperlinks at a certain time and day automatically?
 

Excel Facts

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying
when you start the clock code: Recalc
it will put curr time in A1
put your trigger time in A2
and you link to open in A3


a1 = 10:55:10 AM curr time
a2 = 10:56 AM target Time
a3 = www.google.com link


Code:
Dim SchedRecalc As Date
Dim mvTargTime As Date, mvCurrTime As Date


Sub Recalc()

With Sheet1.Range("A1")
.Value = Format(Time, "hh:mm:ss AM/PM")
End With

Call SetTime

mvTargTime = Range("A2")
mvCurrTime = Range("A1")

If mvCurrTime = mvTargTime Then ActiveSheet.Range("A3").Hyperlinks(1).Follow

End Sub

Sub SetTime()
SchedRecalc = Now + TimeValue("00:00:01")
Application.OnTime SchedRecalc, "Recalc"

End Sub

Sub Disable()
On Error Resume Next

Application.OnTime EarliestTime:=SchedRecalc, Procedure:="Recalc", Schedule:=False
End Sub
 
Upvote 0

Forum statistics

Threads
1,215,346
Messages
6,124,417
Members
449,157
Latest member
mytux

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