画面描画を制御するメモ。
common.bas
Dim i As Long
'画面描画OFF
Application.ScreenUpdating = False
'処理を記述
For i = 0 To 100000
Worksheets("Sheet1").Cells(1, 1) = i
Next
'画面描画ON
Application.ScreenUpdating = True
- 参考文献
Office VBA Reference
画面描画を制御するメモ。
Dim i As Long
'画面描画OFF
Application.ScreenUpdating = False
'処理を記述
For i = 0 To 100000
Worksheets("Sheet1").Cells(1, 1) = i
Next
'画面描画ON
Application.ScreenUpdating = True