VBA & Macro Problems

Display VBA Macro Progress in the Excel Status Bar

John WilsonJohn Wilson Nov 18, 2026 870 views

Question details

Show the current row or completion status while a long-running Excel VBA macro processes records.

Display VBA Macro Progress in the Excel Status Bar
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.
Before you start

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.

Solution 1Recommended

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.

1
Open the macro

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.

2
Add progress updates

Inside the row-processing loop, add Application.StatusBar = "Processing row " & r & " of " & lastRow. Replace r and lastRow with the names used by your macro.

3
Restore the status bar

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

4
Run the macro

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.

Update and restore the Excel status bar in your VBA macro
Adapt the example to your worksheet: The example finds the last used row in column A and starts at row 2. Change the column and starting row to match your data, and place your existing processing code inside the loop rather than creating a duplicate loop.
Free Microsoft Office alternative

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.

Open and edit spreadsheets in a familiar interfaceWork with Microsoft Excel .xlsx and .xls filesReview and organize worksheet records in WPS SpreadsheetsMove everyday document and spreadsheet work to a lightweight office suite
QA img-9

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.