很實用的表單~
不過您提供的範例我無法執行(可能是97的關係

)
所以我依自己的需求再改一下就可以動作了
參考看看
Private Sub UserForm_Activate()
actimes = 1000 '執行動作參數
Application.ScreenUpdating = True
For i = 1 To actimes
j = i / actimes * 100
Me.Caption = "執行中,請稍等... " & Int(j) & "%"
Label1.Width = Label2.Width * j / 100
'-----------------------------------
'執行動作擺放處
'------------------------------------
DoEvents
Next
Unload Me
End Sub
Private Sub UserForm_Initialize()
Label1.Width = 0
End Sub
Private Sub UserForm_QueryClose(Cancel As Integer, CloseMode As Integer)
If CloseMode = 0 Then
Cancel = True
End If
End Sub