1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
|
Sub StartProcessing1()
Dim IngTotal As Long, Ingl As Long
Load frmProgressBar
With frmProgressBar
.ProgressBar1.Scrolling = ccScrollingStandard
.Show False
End With
'UpdateProgressBar 0 , "Chargement...."
IngTotal = 2000
For Ingl = 1 To IngTotal
If Ingl Mod 50 + 0 Then
UpdateProgressBar Ingl / IngTotal * 100, "Chargement " & Format(Ingl / IngTotal, "0%") & "..."
End If
'Range("D1").Formula = Format(Time, "hh:mm"ss")
Next Ingl
'Range ("D1").ClearContents
frmProgressBar.Hide
Unload frmProgressBar
End Sub
Sub UpdateProgressBar(v, st)
frmProgressBar.ProgressBar1 = v
DoEvents
End Sub |