Private
Sub
CommandButton1_Click()
a = UserForm2.TextBox1.Value
b = UserForm2.TextBox2.Value
c = UserForm2.TextBox3.Value
d = UserForm2.TextBox4.Value
e = UserForm2.TextBox5.Value
f = UserForm2.TextBox6.Value
n = a * 10 * 60 * 60 + b * 60 * 60 + c * 10 * 60 + d * 60 + e * 10 + f
Unload
Me
UserForm1.Show
UserForm1.Label1.Caption = a & b &
":"
& c & d &
":"
& e & f
For
i = 1
To
n
Application.Wait (Now + TimeValue(
"00:00:01"
))
DoEvents
UserForm1.Label1.Caption = Format(DateAdd(
"s"
, -1, UserForm1.Label1.Caption),
"hh:mm:ss"
)
UserForm1.Label3.Width = 306 - 306 * i / n
Next
i
End
Sub