Display VBA Macro Progress in the Excel Status Bar
Question details
Show the current row or completion status while a long-running Excel VBA macro processes records.

- Product
- Microsoft Excel
- Device & OS
- not provided
- Scenario
- A VBA macro loops through thousands of worksheet records, and the user wants to see its progress.
- Observed behavior
- The status bar displays the current processing row and returns to Excel's control when the macro ends.
Open the workbook and identify the macro loop, its row counter, and the variable or calculation that determines the last row. Save the workbook as an Excel Macro-Enabled Workbook (.xlsm) if it is not already in a macro-enabled format.
Update and restore the Excel status bar in your VBA macro
Use Application.StatusBar inside the processing loop and reset it on completion or error.
In Excel, select Developer > Visual Basic, then open the module containing your macro. If the Developer tab is hidden, enable it in Excel's ribbon settings.
Inside the row-processing loop, add Application.StatusBar = "Processing row " & r & " of " & lastRow. Replace r and lastRow with the names used by your macro.
Add a cleanup section that runs when the loop finishes or an error occurs. For example, adapt this structure to your existing macro: Sub ProcessRows() Dim r As Long, lastRow As Long On Error GoTo CleanUp lastRow = ActiveSheet.Cells(ActiveSheet.Rows.Count, "A").End(xlUp).Row For r = 2 To lastRow Application.StatusBar = "Processing row " & r & " of " & lastRow ' Put your existing row-processing code here. Next r CleanUp: Application.StatusBar = False If Err.Number <> 0 Then MsgBox Err.Description, vbExclamation End Sub
Save the module, return to Excel, and run the macro from Developer > Macros. Check the status bar at the bottom of the Excel window as the rows are processed.

Work with Excel spreadsheets in WPS Office
WPS Office is a free, lightweight alternative with a familiar spreadsheet interface and support for common Excel formats, making it easy to move everyday spreadsheet work. It does not change the status bar behavior of a macro running in Microsoft Excel.

Frequently Asked Questions
How do I return the status bar to normal after a macro runs?
Set Application.StatusBar = False at the end of the macro. Place it in a cleanup section reached both after the loop and through an error handler.
Can I show a percentage instead of the row number?
Yes. Inside the loop, calculate progress from the number of rows processed and the total number of rows, then assign the formatted percentage to Application.StatusBar. Account for your starting row so the percentage reflects the actual record count.
Why might updating the status bar on every row slow down my macro?
Frequent interface updates can add overhead. Inside the loop, update Application.StatusBar only periodically, such as when r Mod 100 = 0, and also update it on the final row.
What if I cannot see the Excel status bar?
Check whether VBA code has hidden it with Application.DisplayStatusBar = False. Set Application.DisplayStatusBar = True in the VBA editor to show it.




