Sub 进度条() Dim rowTotal As Integer rowTotal = 100 For i = 1 To rowTotal Step 1 prgramBarShow.Show 0 prgramBarShow.lblProgress.Width = prgramBarShow.lblBack.Width * i / rowTotal prgramBarShow.percert.Caption = Format(Round(i / rowTotal * 100, 2), "0") & "%" s = Timer While Timer - s < 0.1 DoEvents Wend Next i Unload prgramBarShow End Sub
标签:vba,Sub,进度条,prgramBarShow,Timer,Width,rowTotal,制作 From: https://www.cnblogs.com/yiblue/p/16964867.html