Once we use at the end of the code, it will revert to the default Excel message which is READY. Display Alerts = True End Sub You can see the code posted in the module below - Now lets understand what each line of the code does - So first we set DISPLAYSTATUSBAR to true and then we set the message for the status bar.
Admittedly, with today's fast systems, simple macros won't always need optimization. Screen Updating = True THe error is Compile error, Method or data member not found Anyone has a clue what the problem is? Certain vba macros / codes take a long time to run or execute the actions required. Sometimes, there could be one or more macros which cover multiple processes and this status bar will be useful to know at which process, the macro has reached.Similar to selecting ranges and objects to perform an action in the sheet, an explicit reference to the sheet also slows down processing. For example, the following code references the same cell (value) six times: Function Return Fee Slow() Select Case Range("I4") Case 1 Return Fee = Range("I4") * 10 Case 2 Return Fee = Range("I4") * 20 Case 3 Return Fee = Range("I4") * 30 Case 4 Return Fee = Range("I4") * 40 Case 5 Return Fee = Range("I4") * 50 End Select Msg Box Return Fee, vb OKOnly End Function At the very least, Return Fee Slow() makes two explicit references to I4.It's not changing the value, it's using the value in a simple expression.If you have turned off screen updating using the line Application.