Theses values are on a sheet named DATA in cols A = date, B = Time C = Message text:
The values are saved and the pc is turned off at end of day on 6/16/2019.
The computer is turned on at 5 AM on 6/17/2019.
I'm confused about how to write simple but correct code that will display a userform
with Textbox1 to display 1ST, 2ND and 3RD messages at the correct time
of day on 6/17/2019.
I'm going in circles with figuring how to get this to work correctly.
My understanding is that the code has to be able to determine which messages are to be run at
which time on which day. I don't know if using Find and/or with a For Loop is necessary to do this correctly.
Can someone please give me a hand in working this out.
Thanks for anyone's help.
cr
Code:
6/17/2019 6:00 PM 1ST MSG
6/17/2019 7:00 PM 2ND MSG
6/17/2019 8:00 PM 3RD MSG
The computer is turned on at 5 AM on 6/17/2019.
I'm confused about how to write simple but correct code that will display a userform
with Textbox1 to display 1ST, 2ND and 3RD messages at the correct time
of day on 6/17/2019.
I'm going in circles with figuring how to get this to work correctly.
Code:
x = Now() + TimeSerial(h, m, 0)
Application.OnTime t, "Runamsg"
Unload Me
which time on which day. I don't know if using Find and/or with a For Loop is necessary to do this correctly.
Can someone please give me a hand in working this out.
Thanks for anyone's help.
cr
Last edited: