Hello! When I ran a long macro, I use a textbox in a userform with a label, telling the user to wait. The textbox has also a nice image for them to look at.
However, I'd like to show the user how long this takes, by using a timer counting how long the process takes.
So for example, if the user sees that 15mins have passed, he'll know that the macro is about to finish. The following code works but only states the time that the macro began.
It is useful if the user compares this to the current time. But I'd much rather prefer that they saw a timer on the label or somewhere else. Could this be done?
And also, do you have any other suggestions about what else I could show to make the user more interested instead of bored when waiting for the macro to finish? This long running macro uses a combination of various macros, some of which are manipulating the status bar showing various messages.
Your ideas would be most appreciated!!!
However, I'd like to show the user how long this takes, by using a timer counting how long the process takes.
So for example, if the user sees that 15mins have passed, he'll know that the macro is about to finish. The following code works but only states the time that the macro began.
It is useful if the user compares this to the current time. But I'd much rather prefer that they saw a timer on the label or somewhere else. Could this be done?
And also, do you have any other suggestions about what else I could show to make the user more interested instead of bored when waiting for the macro to finish? This long running macro uses a combination of various macros, some of which are manipulating the status bar showing various messages.
Your ideas would be most appreciated!!!
VBA Code:
Sub Live_time()
Application.OnTime Time + TimeValue("00:00:01"), "Live_time"
UserForm1.Label1 = Time
UserForm1.Repaint
End Sub
Private Sub UserForm_Initialize()
lblMessage.Caption = Processing_Message & " " & Time
Application.OnTime Time + TimeValue("00:00:01"), "Live_time"
End Sub