Application.ShowProgress property (Visio)
Determines whether a progress indicator is shown while performing certain operations. Read/write.
Syntax
expression.ShowProgress
expression A variable that represents an Application object.
Return value
Integer
Remarks
If you want to perform an operation, such as printing, that typically displays a progress indicator but you don't want the progress indicator to appear, set the ShowProgress property to False (0). By default, the ShowProgress property is True (non-zero).
In most cases you should restore the setting to its prior value when you've completed the operation.
Example
This Microsoft Visual Basic for Applications (VBA) macro shows how to use the ShowProgress property of the Application object. It switches the display of the progress indicator on and off and displays the state of the property in the Immediate window.
Sub ShowProgress_Example()
'Create a variable to hold the current state
'of the progress indicator.
Dim intProgress As Integer
'Display the current state of the progress indicator.
Debug.Print "Initial state: " & Application.ShowProgress
'Get the state of the progress indicator.
intProgress = Application.ShowProgress
'Turn off the progress indicator.
Application.ShowProgress = False
'Display the status again.
Debug.Print "Changed state: " & Application.ShowProgress
'Now restore the progress indicator to its original state.
Application.ShowProgress = intProgress
'Display the status again.
Debug.Print "Restored state: " & Application.ShowProgress
End Sub
Support and feedback
Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기