Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #2  
Old 09-18-2019, 09:09 PM
gmayor's Avatar
gmayor gmayor is offline Application.ScreenUpdating Question Windows 10 Application.ScreenUpdating Question Office 2016
Expert
 
Join Date: Aug 2014
Posts: 4,138
gmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud of
Default

I prefer not to use exit sub, but goto a label at the end of the macro where the macro is tidied up e.g. as follows

Code:
Sub Macro1()
Dim orng As Range
    Application.ScreenUpdating = False
    ' code of macro
    GoTo lbl_Exit
    ' more code
lbl_Exit:
    Application.ScreenUpdating = True
    Set orng = Nothing
    Exit Sub
End Sub
I cannot comment on the CPU use.
__________________
Graham Mayor - MS MVP (Word) (2002-2019)
Visit my web site for more programming tips and ready made processes www.gmayor.com
Reply With Quote
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
Application.ScreenUpdating Question Application.ScreenUpdating not working? Welshgasman Word VBA 3 05-02-2017 08:42 AM
Application.ScreenUpdating Question Macro Needed to Insert Asnwer to A Question in Multiple Choice Format Question rsrasc Word VBA 7 03-28-2014 12:28 PM
Application.ScreenUpdating Question What application to use? pfergy Office 1 03-12-2011 08:46 PM
Application.ScreenUpdating Question Best application to use? FrankW Office 2 06-13-2009 01:16 AM
Categories question & replying with attachment question glitzymama Outlook 0 03-15-2006 09:32 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 11:24 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft