📄 vba11-4.txt
字号:
Public Sub ShowProgressBar()
' Show the progress bar
Dim pStatusBar As IStatusBar
Set pStatusBar = Application.StatusBar
pStatusBar.ShowProgressBar "Computing", 0, _
10000, 1, True
' Step through the progress bar
Dim lngIndex As Long
For lngIndex = 0 To 10000
' Do your computation here
pStatusBar.StepProgressBar
Next lngIndex
MsgBox "Progress bar reached 100%"
' Remove progress bar from the status bar
pStatusBar.HideProgressBar
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -