#001 Private Sub CommandButton1_Click()
#002 Dim i As Integer
#003 UserForm1.Show 0
#004 With UserForm1.ProgressBar1
#005 .Min = 1
#006 .Max = 10000
#007 .Scrolling = 0
#008 For i = 1 To 10000
#009 Cells(i, 1) = i
#010 .Value = i
#011 UserForm1.Caption = "正在运行,已完成" & i / 100 & "%,请稍候!"
#012 Next
#013 End With
#014 Unload UserForm1
#015 Columns(1).ClearContents
#016 End Sub作者: Scott090 時間: 2015-6-11 20:56