Seeing If a Workbook Has Been Saved

Written by Allen Wyatt (last updated January 29, 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:

If you would like to know how to use the macros described on this page (or on any other page on the ExcelTips sites), I've prepared a special page that includes helpful information. Click here to open that special page in a new browser tab.

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.

Author Bio

Allen Wyatt

With more than 50 non-fiction books and numerous magazine articles to his credit, Allen Wyatt is an internationally recognized author. He is president of Sharon Parq Associates, a computer and publishing services company. ...

MORE FROM ALLEN

Using Continued Lines

You can create a special header and footer page numbering scheme by using nested fields. This tip shows an example of how ...

Discover More

Counting Unique Values

Need to know a count of unique values in a range of cells? There are a couple of ways you can tackle the problem.

Discover More

Emoticons in Word

Like to add a smiley or two to your writing? Word makes it easy through creative use of the AutoCorrect feature.

Discover More

Professional Development Guidance! Four world-class developers offer start-to-finish guidance for building powerful, robust, and secure applications with Excel. The authors show how to consistently make the right design decisions and make the most of Excel's powerful features. Check out Professional Excel Development today!

More ExcelTips (ribbon)

Last Person to Save a Workbook

If you have a need to know who last saved a workbook, there are several ways you can derive that information. This tip ...

Discover More

Seeing a Worksheet Thumbnail in Windows

When you save a workbook, you have the opportunity to save a thumbnail image that can be displayed within Windows. Here's ...

Discover More

Comparing Workbooks

Do you need to compare two workbooks to each other? While you can use specialized third-party software to do the ...

Discover More
Subscribe

FREE SERVICE: Get tips like this every week in ExcelTips, a free productivity newsletter. Enter your address and click "Subscribe."

View most recent newsletter.

Comments

If you would like to add an image to your comment (not an avatar, but an image to help in making the point of your comment), include the characters [{fig}] (all 7 characters, in the sequence shown) in your comment text. You’ll be prompted to upload your image when you submit the comment. Maximum image size is 6Mpixels. Images larger than 600px wide or 1000px tall will be reduced. Up to three images may be included in a comment. All images are subject to review. Commenting privileges may be curtailed if inappropriate images are posted.

What is 7 - 2?

There are currently no comments for this tip. (Be the first to leave your comment—just use the simple form above!)


This Site

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.

Newest Tips
Subscribe

FREE SERVICE: Get tips like this every week in ExcelTips, a free productivity newsletter. Enter your address and click "Subscribe."

(Your e-mail address is not shared with anyone, ever.)

View the most recent newsletter.