Application.ShowProgress プロパティ (Visio)

特定の操作の実行中に、進行状況インジケーターが表示されるかどうかを指定します。 値の取得と設定が可能です。

構文

式。ShowProgress

expressionApplication オブジェクトを 表す変数。

戻り値

整数

注釈

印刷など、通常は進行状況インジケーターが表示されるが、進行状況インジケーターを表示したくない場合は、 ShowProgress プロパティを False (0) に設定します。 既定では、 ShowProgress プロパティは True (0 以外) です。

多くの場合、操作が完了したら、設定を前の値に戻します。

例

この VBA (Microsoft Visual Basic for Applications) マクロは、Application オブジェクトの ShowProgress プロパティの使用方法を示します。 進行状況インジケーターの表示を切り替えて、そのプロパティの状態をイミディエイト ウィンドウに表示します。

 
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

サポートとフィードバック

Office VBA またはこの説明書に関するご質問やフィードバックがありますか? サポートの受け方およびフィードバックをお寄せいただく方法のガイダンスについては、Office VBA のサポートおよびフィードバックを参照してください。