BenGrobler
New Member
- Joined
- Apr 19, 2021
- Messages
- 31
- Office Version
- 2019
- 2016
- Platform
- Windows
Hi Guys
I have a running clock in an excel worksheet, here is the code:
Dim SchedRecalc As Date
Sub Recalc()
With Sheet8.Range("A1")
.Value = Format(Time, "hh:mm:ss AM/PM")
End With
Call SetTime
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
I need the value in cell E4 to be copied when the running clock reaches 09:00 am and paste it in D17
then when the clock reaches 10:00 am it must copy the value in E4 and paste it in D18...
i need to create a graph with this info..
Is there a vba code that i can insert it into the above to make it happen or a if statement to copy and paste??
Please help
I have a running clock in an excel worksheet, here is the code:
Dim SchedRecalc As Date
Sub Recalc()
With Sheet8.Range("A1")
.Value = Format(Time, "hh:mm:ss AM/PM")
End With
Call SetTime
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
I need the value in cell E4 to be copied when the running clock reaches 09:00 am and paste it in D17
then when the clock reaches 10:00 am it must copy the value in E4 and paste it in D18...
i need to create a graph with this info..
Is there a vba code that i can insert it into the above to make it happen or a if statement to copy and paste??
Please help