This can mean that what should take a matter of 1 to 3 seconds, often takes a lot longer. Free Excel Help One drawback with recorded macros in Excel is that the code produced is often very inefficient.Display Alerts is unrelated to how fast the program runs, it will just suppress default Excel warnings (e.g.prompting to confirm worksheet deletions), which you may or may not want to suppress. Description The improvement of screen Updating depends largely on how your macro is written.Use this code template as a starting point (the error handler ensures that these properties are turned back on at the end of the sub, even if it errors) Sub Your Sub() On Error Go To EH Application. Select Next i 'get results results = "Screen Updating not disabled: " & Format(Time - start Time, "hh:mm:ss") & " seconds" start Time = Time 'scenario 2 - screenupdating disabled Application.
The grater the amount of screen changes the bigger the impact will be. Other application settings that can make a difference to execution time are Calculation and Event handling. Enable Events = False ' Code here Clean Up: On Error Resume Next Application. Calculation = xl Calculation Automatic Application. Enable Events = True Exit Sub EH: ' Do error handling Go To Clean Up End Sub Sub test Screen Updating() Dim i As Integer Dim numb Switches As Integer Dim results As String 'swap between sheets this number of times numb Switches = 1000 'keep track of time Dim start Time As Double start Time = Time 'swap between sheets 1/2 (need both sheets or this will crash) For i = 1 To numb Switches Sheets(1 (i Mod 2)).This can happen with recorded macros that have the word Select used frequently.If this does happen, you may need to repeat the line: Application.So if your code is not updating too many sheets/cells but your workbook has many formulas then turning off the screen update might not help you at all.