1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

【VBA】ステータスバーに処理の進捗状況を表示するモジュール

Posted at

処理が多くて画面表示を停めている場合に、フリーズしていないか不安になったので入れてみました。

'’ステータスバー表示’あたま
Dim i As Integer
Dim S As String

S = "Sub名" 'Sub名

For i = 1 To 10
Application.StatusBar = S & "_" & "実行中" & String(i, "■") & String(10 - i, "□")
Application.Wait [Now()+"00:00:00.2"]
'’以下、動作

''ここに操作内容を入れる。

'’以上、動作
'’ステータス表示’お尻
Next i
Application.StatusBar = False 'ステータスバーを非表示

1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?