Some of the macros that I am writing have the display flashing this or that, flipping between windows, etc. When I was writing macros for Lotus, there was a command to freeze the display, not updating anything on screen until the freeze was lifted or the macro finished running. In addition to eliminating unnecessary visual distractions, the macro would also run faster. Is there a similar command that could be added to a VBA macro?
![]() |
Patch reliability is unclear. Unless you have an immediate, pressing need to install a specific patch, don't do it. |
SIGN IN | Not a member? | REGISTER | PLUS MEMBERSHIP |
-
Freeze display (2000 SR1)
Home » Forums » AskWoody support » Productivity software by function » MS Excel and spreadsheet help » Freeze display (2000 SR1)
- This topic has 5 replies, 3 voices, and was last updated 23 years, 7 months ago.
AuthorTopicWSd_rasley
AskWoody LoungerOctober 8, 2001 at 3:49 pm #361277Viewing 0 reply threadsAuthorReplies-
WSFredPC
AskWoody LoungerOctober 8, 2001 at 4:45 pm #545730David
Here are some code snippets I use…
Setting calculations to manual will keep Excel from updating any “dependant” cells until after your vba code is finished running… this may or may not have a huge effect on the speed of your vba code.
‘ Set Calculations to Manual
‘ Create a variable to save the user preference setting
Dim saveCalculation As String
‘ Save the users setting for the xlCalculation
saveCalculation = Application.Calculation
‘ Turn off calculations… speeds up VBA code
Application.Calculation = xlCalculationManual
‘ When done… reset back to user preferrence
Application.Calculation = saveCalculationTurning off screen updating sounds like exactly what you were asking about. Be aware though, ALL Excel screen updates are disabled by the following code, which can make your application appear to freeze. I always use some other activitiy indicator in conjunction with disabling screen updates… like setting a message in the status bar to “Please wait…” and, for long routines, updating the status bar message every so often throughout my code.
‘ Set StatusBar On & send a message
‘ Create a variable to save the user preference setting
Dim saveStatusBar As String
‘ Save the users setting for the StatusBar
saveStatusBar = Application.DisplayStatusBar
‘ Turn on the StatusBar
Application.DisplayStatusBar = True
Application.StatusBar = “This will take some time. Please be patient…”‘ Turn off screen updates… makes Excel appear to freeze!!!
Application.ScreenUpdating = False”” Run your time consuming routine here
‘ Turn screen updates back on
Application.ScreenUpdating = True‘ Send another message
Application.StatusBar = “Processing complete. Thank you for your patience…”‘ Set the StatusBar back to the user preferrence
Application.DisplayStatusBar = saveStatusBarBTW… love your signature! (a fellow Canadian)
Hope this helps…
-
WSd_rasley
AskWoody LoungerOctober 8, 2001 at 5:28 pm #545732The “Application.ScreenUpdating = False” is exactly what I had in mind. For now, the processes are not long or time consuming, just very busy visually. This should make things a little more to my liking. (My opinion of programming is “Let them see the input screen and the final output — hide everything else.”)
-
notbrl
AskWoody LoungerOctober 8, 2001 at 6:00 pm #545736I have a userform that is shown while macros run. The userform is attached (.bmp file) as an example.
Sub PopulateAvail() Application.ScreenUpdating = False Load frmAvailProg frmAvailProg.Show vbModeless frmAvailProg.lblAvailProg.Caption = "Formatting...." frmAvailProg.Repaint AvailFormat frmAvailProg.lblAvailProg.Caption = "Filling in Dates...." frmAvailProg.Repaint AvailDateFill frmAvailProg.lblAvailProg.Caption = "Filling in Hours and Minute Intervals...." frmAvailProg.Repaint AvailHourIntervalFill frmAvailProg.lblAvailProg.Caption = "Unit Labels are being written...." frmAvailProg.Repaint FillUnits frmAvailProg.lblAvailProg.Caption = "Inserting Formulas...." frmAvailProg.Repaint FillFormulas frmAvailProg.lblAvailProg.Caption = "Cleaning up...." frmAvailProg.Repaint CleanUpAvail Unload frmAvailProg Application.ScreenUpdating = True End Sub
-
WSFredPC
AskWoody Lounger
-
-
-
WSFredPC
AskWoody Lounger
-
Viewing 0 reply threads -

Plus Membership
Donations from Plus members keep this site going. You can identify the people who support AskWoody by the Plus badge on their avatars.
AskWoody Plus members not only get access to all of the contents of this site -- including Susan Bradley's frequently updated Patch Watch listing -- they also receive weekly AskWoody Plus Newsletters (formerly Windows Secrets Newsletter) and AskWoody Plus Alerts, emails when there are important breaking developments.
Get Plus!
Welcome to our unique respite from the madness.
It's easy to post questions about Windows 11, Windows 10, Win8.1, Win7, Surface, Office, or browse through our Forums. Post anonymously or register for greater privileges. Keep it civil, please: Decorous Lounge rules strictly enforced. Questions? Contact Customer Support.
Search Newsletters
Search Forums
View the Forum
Search for Topics
Recent Topics
-
Mozilla Firefox Security Updates! Released late 17th May 2025
by
Alex5723
4 hours, 52 minutes ago -
Microsoft: Troubleshoot problems updating Windows
by
Alex5723
1 hour, 45 minutes ago -
Woman Files for Divorce After ChatGPT “Reads” Husband’s Coffee Cup
by
Alex5723
8 hours, 50 minutes ago -
Moving fwd, Win 11 Pro,, which is best? Lenovo refurb
by
Deo
2 hours, 17 minutes ago -
DBOS Advanced Network Analysis
by
Kathy Stevens
18 hours, 40 minutes ago -
Microsoft Edge Launching Automatically?
by
healeyinpa
9 hours, 5 minutes ago -
Google Chrome to block admin-level browser launches for better security
by
Alex5723
21 hours, 20 minutes ago -
iPhone SE2 Stolen Device Protection
by
Rick Corbett
13 hours, 36 minutes ago -
Some advice for managing my wireless internet gateway
by
LHiggins
9 hours, 17 minutes ago -
NO POWER IN KEYBOARD OR MOUSE
by
HE48AEEXX77WEN4Edbtm
15 hours, 33 minutes ago -
A CVE-MITRE-CISA-CNA Extravaganza
by
Nibbled To Death By Ducks
1 day, 6 hours ago -
Sometimes I wonder about these bots
by
Susan Bradley
1 day, 3 hours ago -
Does windows update component store “self heal”?
by
Mike Cross
17 hours, 10 minutes ago -
Windows 11 Insider Preview build 27858 released to Canary
by
joep517
1 day, 20 hours ago -
Pwn2Own Berlin 2025: Day One Results
by
Alex5723
4 hours, 44 minutes ago -
Windows 10 might repeatedly display the BitLocker recovery screen at startup
by
Susan Bradley
8 hours, 25 minutes ago -
Windows 11 Insider Preview Build 22631.5409 (23H2) released to Release Preview
by
joep517
1 day, 23 hours ago -
Windows 10 Build 19045.5912 (22H2) to Release Preview Channel
by
joep517
1 day, 23 hours ago -
Kevin Beaumont on Microsoft Recall
by
Susan Bradley
1 day, 12 hours ago -
The Surface Laptop Studio 2 is no longer being manufactured
by
Alex5723
2 days, 7 hours ago -
0Patch, where to begin
by
cassel23
2 days, 1 hour ago -
CFPB Quietly Kills Rule to Shield Americans From Data Brokers
by
Alex5723
2 days, 21 hours ago -
89 million Steam account details just got leaked,
by
Alex5723
2 days, 9 hours ago -
KB5058405: Linux – Windows dual boot SBAT bug, resolved with May 2025 update
by
Alex5723
3 days, 5 hours ago -
A Validation (were one needed) of Prudent Patching
by
Nibbled To Death By Ducks
2 days, 20 hours ago -
Master Patch Listing for May 13, 2025
by
Susan Bradley
2 days, 7 hours ago -
Installer program can’t read my registry
by
Peobody
20 minutes ago -
How to keep Outlook (new) in off position for Windows 11
by
EspressoWillie
2 days, 18 hours ago -
Intel : CVE-2024-45332, CVE-2024-43420, CVE-2025-20623
by
Alex5723
3 days, 1 hour ago -
False error message from eMClient
by
WSSebastian42
3 days, 16 hours ago
Recent blog posts
Key Links
Want to Advertise in the free newsletter? How about a gift subscription in honor of a birthday? Send an email to sb@askwoody.com to ask how.
Mastodon profile for DefConPatch
Mastodon profile for AskWoody
Home • About • FAQ • Posts & Privacy • Forums • My Account
Register • Free Newsletter • Plus Membership • Gift Certificates • MS-DEFCON Alerts
Copyright ©2004-2025 by AskWoody Tech LLC. All Rights Reserved.