Hi I want the value of the progress bar t obe saved as a variable the second time a user clicks the button, please help! HERES MY CODE:
[Highlight=VB]
Command1.Caption = "Stop the strength O' meter"
Static Quit As Boolean
Dim i As Integer
Dim t As Integer
Quit = Not Quit
If Quit = False Then Exit Sub
i = 1
Do Until Quit = False
DoEvents
If t = 800 Then
ProgressBar2.Value = ProgressBar2.Value + i
If ProgressBar2.Value = ProgressBar2.Max Or ProgressBar2.Value = ProgressBar2.Min Then i = -i
t = 0
End If
t = t + 1
Loop
strength = ProgressBar2.Value
Command1.Enabled = False