Written by Allen Wyatt (last updated January 31, 2026)
This tip applies to Excel 2007, 2010, 2013, 2016, 2019, 2021, 2024, and Excel in Microsoft 365
Dave notes that in Word, it's easy to see whether the document you're working on has been saved or not. In Excel, though, that information isn't presented, so he wonders if there is some way to have the program display info in a cell that would indicate whether or not the workbook has been saved.
In the latest versions of Excel, what Dave sees is already in place. The indication of whether a workbook has been saved or not is also consistent with the indication shown in Word. If a workbook has been saved, then at the top of the Excel program window—just to the right of the Quick Access Toolbar and to the left of the Search box—you'll see the name of the workbook. Immediately after saving the workbook, to the right of the workbook name you'll see text similar to "Saved to this PC." (In Microsoft Word, the text is simply "Saved.") Make an edit, and this text goes away until you next do a save.
If this indicator is not prominent enough for you, then you can create some macros that will do what Dave desires. Place the following macro in a standard module for the current workbook:
Private Sub UpdateSaveStatus(ByVal JustSaved As Boolean)
On Error GoTo SafeExit
Application.EnableEvents = False
With ActiveWorkbook.ActiveSheet.Range("A1")
If ActiveWorkbook.Saved Then
.Value = "Saved"
Else
.Value = "Unsaved!"
End If
End With
If JustSaved Then ActiveWorkbook.Saved = True
SafeExit:
Application.EnableEvents = True
End Sub
Next, place the following macros in the ThisWorkbook module for the save workbook:
Private Sub Workbook_Open()
UpdateSaveStatus False
End Sub
Private Sub Workbook_SheetChange(ByVal Sh As Object, ByVal Target As Range)
UpdateSaveStatus False
End Sub
Private Sub Workbook_AfterSave(ByVal Success As Boolean)
UpdateSaveStatus True
End Sub
Whenever the workbook is opened, saved, or a change is made, the UpdateSaveStatus macro is executed, which places the appropriate text ("Saved" or "Unsaved!") into cell A1.
The drawback to such an approach, obviously, is that your workbook will need to be saved as an XLSM file (macro enabled). The macro code would also need to be added to every workbook that you want to use this approach.
Note:
ExcelTips is your source for cost-effective Microsoft Excel training. This tip (5224) applies to Microsoft Excel 2007, 2010, 2013, 2016, 2019, 2021, 2024, and Excel in Microsoft 365.
Solve Real Business Problems Master business modeling and analysis techniques with Excel and transform data into bottom-line results. This hands-on, scenario-focused guide shows you how to use the latest Excel tools to integrate data from multiple tables. Check out Microsoft Excel Data Analysis and Business Modeling today!
You can spend a lot of time getting your workbook to look "just right." Wouldn't it be great if Excel was able to ...
Discover MoreWhen you open a workbook, Excel displays the worksheet that was visible when the workbook was last saved. You may want, ...
Discover MoreWorkbooks can get rather large rather quickly. If you think your workbook has gotten too big too fast, here are some ...
Discover MoreFREE SERVICE: Get tips like this every week in ExcelTips, a free productivity newsletter. Enter your address and click "Subscribe."
2026-01-31 14:27:15
Tomek
In my opinion all these macro based approaches are like using big guns to kill a mosquito. Additionally, there are several problems, some of them mentioned by Alex Blakenburg and J. Woolley.
The indicator in the Title Bar "Saved" or "Saved to this PC" should be sufficient and not clutter your actual workbook. For earlier versions of Excel that do not show this indicator I suggest a simple macro that should be placed in your PERSONAL.XLSB:
Public Sub infoSaved()
MsgBox ActiveWorkbook.Saved, , "Is the Workbook Saved?"
End Sub
Assign this macro to you Quick Access Toolbar and click on the icon whenever you need this information.
There is one glitch if you use OneDrive and set the AutoSave option: the Title Bar indicator will show your workbook as "Saved" after you make some change to the workbook (it is AutoSave after all), while the macro above will still tell you "FALSE" at least for a while. But the workbook will get saves when you exit it.
NOTE also the difference in the Title Bar indicator from "Saved to this PC" to just "Saved" if you use One Drive.
2026-01-31 10:48:48
J. Woolley
There are several reasons why the Tip's VBA procedures will not work as described:
1. As noted by Alex Blakenburg, if Sub UpdateSaveStatus is located in a standard module, then it must not be declared Private; otherwise, it will not be available to procedures in the ThisWorkbook module. It might be better to retain UpdateSaveStatus as a Private Sub and locate it in the ThisWorkbook module so it can only be referenced locally.
2. Cell A1 on every worksheet must be reserved for use by UpdateSaveStatus.
3. UpdateSaveStatus updates the value of cell A1 on any worksheet that is currently active but not when that worksheet is inactive; therefore, cell A1 will not reliably indicate the current status when that worksheet is reactivated.
4. When a sheet is calculated the workbook usually becomes unsaved, but cell A1 is not appropriately updated.
5. Workbook_AfterSave calls 'UpdateSaveStatus True' even if Success is False and the workbook is not saved. ActiveWorkbook.Saved is automatically updated by Excel; it is not normally set in VBA unless you want to close an unsaved workbook without a Save prompt.
Here's an alternate method that resolves these issues. First pick a single cell to display the save status and use Formulas > Define Name (Alt+M,M,D) to name that cell SaveStatus with Workbook scope. Then add the following VBA to the ThisWorkbook module:
Private Sub Workbook_AfterSave(ByVal Success As Boolean)
If Not Success Then UpdateSaveStatus False
End Sub
Private Sub Workbook_BeforeSave(ByVal SaveAsUI As Boolean, _
Cancel As Boolean)
UpdateSaveStatus True
End Sub
Private Sub Workbook_SheetCalculate(ByVal Sh As Object)
UpdateSaveStatus False
End Sub
Private Sub Workbook_SheetChange(ByVal Sh As Object, _
ByVal Target As Range)
UpdateSaveStatus False
End Sub
Private Sub UpdateSaveStatus(arg As Boolean)
Application.EnableEvents = False
Range("SaveStatus") = IIf(arg, "", "Not ") & "Saved"
Application.EnableEvents = True
End Sub
Notice any sheet can display the current save status by entering the following formula in a cell: =SaveStatus
This method might not cover all event scenarios. Please describe any issues you observe.
Finally, this method is impractical for reasons described by Alex Blakenburg.
2026-01-31 07:30:44
Alex Blakenburg
If you are going to place the "UpdateSaveStatus" sub in a standard module as indicated, you need to drop the "Private" keyword before "Private Sub UpdateSaveStatus" or you will get "Compile Error : Sub or Function not defined".
Also a more significant draw back than making the workbook an XLSM file is that since you are running an update macro each time you make a change to a sheet, it will clear the Undo Stack for that workbook. So Undo / Ctrl+Z will no longer work.
Got a version of Excel that uses the ribbon interface (Excel 2007 or later)? This site is for you! If you use an earlier version of Excel, visit our ExcelTips site focusing on the menu interface.
FREE SERVICE: Get tips like this every week in ExcelTips, a free productivity newsletter. Enter your address and click "Subscribe."
Copyright © 2026 Sharon Parq Associates, Inc.
Comments