It sounds like you want a "Splash Screen". Like a form
with a timer, that closes when the timer reaches
x seconds.
Can you give me an example or tell me where I can
read about this command?
Ken
Create a form called UserForm1. Paste this code
in the forms module. Make this form open with Excel's
on open call.
Private Sub UserForm_Activate()
Dim MyHour, MyMinute, MySecond, MyWait
MyHour = Hour(Now())
MyMinute = Minute(Now())
MySecond = Second(Now()) + 3
MyWait = TimeSerial(MyHour, MyMinute, MySecond)
Application.Wait MyWait
End
End Sub
MyHour = Hour(Now()) MyMinute = Minute(Now()) MySecond = Second(Now()) + 3 MyWait = TimeSerial(MyHour, MyMinute, MySecond) Application.Wait MyWait End
This will show the form, place it in the ThisWorkbook
module.
Private Sub Workbook_Open()
UserForm1.Show
End Sub
MyHour = Hour(Now()) MyMinute = Minute(Now()) MySecond = Second(Now()) + 3 MyWait = TimeSerial(MyHour, MyMinute, MySecond) Application.Wait MyWait End
I have very little experience with userforms.
Hopefully after I read up on them I will be
able to make this work. Thank you.
Ken
this work
MyHour = Hour(Now()) MyMinute = Minute(Now()) MySecond = Second(Now()) + 3 MyWait = TimeSerial(MyHour, MyMinute, MySecond) Application.Wait MyWait End
Go into the Visual Basic Editor. From the menu select
Insert/User Form. Double click the user form to
see the code area of it. Paste the above Activate
code in the form's code area.
Design the form using the toolbox. Drag and drop
a label onto the form. Type your message on the label.