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
-
MS Passkey
by
pmruzicka
2 hours, 29 minutes ago -
Can’t make Opera my default browser
by
bmeacham
4 hours, 23 minutes ago -
*Some settings are managed by your organization
by
rlowe44
2 hours, 16 minutes ago -
Formatting of “Forward”ed e-mails
by
Scott Mills
3 hours, 18 minutes ago -
SmartSwitch PC Updates will only be supported through the MS Store Going Forward
by
PL1
22 hours, 59 minutes ago -
CISA warns of hackers targeting critical oil infrastructure
by
Nibbled To Death By Ducks
1 day, 8 hours ago -
AI slop
by
Susan Bradley
1 day, 7 hours ago -
Chrome : Using AI with Enhanced Protection mode
by
Alex5723
1 day, 9 hours ago -
Two blank icons
by
CR2
18 hours, 50 minutes ago -
Documents, Pictures, Desktop on OneDrive in Windows 11
by
ThePhoenix
1 day, 18 hours ago -
End of 10
by
Alex5723
1 day, 20 hours ago -
Single account cannot access printer’s automatic duplex functionality
by
Bruce
18 hours, 45 minutes ago -
test post
by
gtd12345
2 days, 2 hours ago -
Privacy and the Real ID
by
Susan Bradley
1 day, 16 hours ago -
MS-DEFCON 2: Deferring that upgrade
by
Susan Bradley
1 day, 9 hours ago -
Cant log on to oldergeeks.Com
by
WSJonharnew
2 days, 7 hours ago -
Upgrading from Win 10
by
WSjcgc50
18 hours, 55 minutes ago -
USB webcam / microphone missing after KB5050009 update
by
WSlloydkuhnle
22 hours, 29 minutes ago -
TeleMessage, a modified Signal clone used by US government has been hacked
by
Alex5723
2 days, 22 hours ago -
The story of Windows Longhorn
by
Cybertooth
2 days, 10 hours ago -
Red x next to folder on OneDrive iPadOS
by
dmt_3904
3 days ago -
Are manuals extinct?
by
Susan Bradley
1 hour, 12 minutes ago -
Canonical ditching Sudo for Rust Sudo -rs starting with Ubuntu
by
Alex5723
3 days, 9 hours ago -
Network Issue
by
Casey H
2 days, 21 hours ago -
Fedora Linux is now an official WSL distro
by
Alex5723
3 days, 21 hours ago -
May 2025 Office non-Security updates
by
PKCano
3 days, 22 hours ago -
Windows 10 filehistory including onedrive folder
by
Steve Bondy
4 days ago -
pages print on restart (Win 11 23H2)
by
cyraxote
3 days, 1 hour ago -
Windows 11 Insider Preview build 26200.5581 released to DEV
by
joep517
4 days, 2 hours ago -
Windows 11 Insider Preview build 26120.3950 (24H2) released to BETA
by
joep517
4 days, 2 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.