Application.ScreenUpdating property (Word)
True if screen updating is turned on. Read/write Boolean.
Syntax
expression.ScreenUpdating
expression An expression that returns an Application object.
Remarks
The ScreenUpdating property controls most display changes on the monitor while a procedure is running. When screen updating is turned off, toolbars remain visible and Word still allows the procedure to display or retrieve information using status bar prompts, input boxes, dialog boxes, and message boxes. You can increase the speed of some procedures by keeping screen updating turned off. You must set the ScreenUpdating property to True when the procedure finishes or when it stops after an error.
Example
This example turns off screen updating and then adds a new document. Five hundred lines of text are added to the document. At every fiftieth line, the macro selects the line and refreshes the screen.
Application.ScreenUpdating = False
Documents.Add
For x = 1 To 500
With ActiveDocument.Content
.InsertAfter "This is line " & x & "."
.InsertParagraphAfter
End With
If x Mod 50 = 0 Then
ActiveDocument.Paragraphs(x).Range.Select
Application.ScreenRefresh
End If
Next x
Application.ScreenUpdating = True
See also
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 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기