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

Easy bullets in Excel
If you have a numeric keypad, press Alt+7 on numeric keypad to type a bullet in Excel.
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,352
Messages
6,124,449
Members
449,160
Latest member
nikijon

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