Incorrect In-Use Message

Written by Allen Wyatt (last updated June 3, 2026)

1

Every time Kevin opens one particular Excel workbook, he sees a notice that the "file is in use" and is locked for editing, with the username being his own. He knows he doesn't have this workbook open. He's saved the workbook under a new name, but he still gets the same "in use" message when opening the new file.

There are a couple of things that may be causing the issue. The first thing to check is to get out of Excel and see if there is a "lock file" for the workbook. (These are sometimes called "owner files" or "semaphore files.") When you first open a workbook, Excel creates the lock file to indicate that the workbook is in use. This file is essentially the name of the opened workbook preceded by a tilde and a dollar sign. Thus, if you open a file named MyFile.xlsx, then the lock file will be named ~$MyFile.xlsx.

The lock file should be automatically deleted when you close the workbook with which it is associated. If something interferes with deleting the lock file (such as Excel crashing or not closing normally), then the next time you open the workbook, it will show as "in use."

Go ahead and get out of Excel, then use Explorer to navigate to the folder in which the workbook is stored. Check to see if the lock file is in that folder. In order to see any left-over lock files, you'll need to make sure you have Windows configured to display all hidden files. (Lock files are hidden, by default.) If you see the file, simply delete it, and you should be fine on restarting Excel.

Another possible cause of the problem is the way that Windows Explorer interacts with files. A popular way to use Explorer is to leave the Preview pane open at the right side of the Explorer window. With the pane turned on, you are shown a preview of whatever file you have selected in the Explorer window. In order to display the preview, Explorer must open the file, and this can cause "false positives" if you have a workbook selected and you try to open the workbook through Explorer.

The solution in this situation is to simply get out of Explorer and open the workbook or close the Preview pane in Explorer. Either way should allow you to open the workbook just fine.

ExcelTips is your source for cost-effective Microsoft Excel training. This tip (13692) 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

Creating a List of Cross-References

Cross-referencing has long been a capability in Word documents. You can easily add and remove cross-references but ...

Discover More

Changing Your Name

One of the many pieces of information that Excel keeps track of is your name. If you want to change your name for Excel's ...

Discover More

Creating Two Versions of the Same Document

You may often need to create two versions of the same document, one with everything and the other with a subset of what ...

Discover More

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!

More ExcelTips (ribbon)

Remembering Workbook Position and Size

Want Excel to remember where your workbooks were located on the screen and then open them in the same position the next ...

Discover More

When Excel Starts, Nothing Shows

When you start up Excel, you should eventually see a blank workbook, ready for you to work with. If you don't, if you see ...

Discover More

Seeing All Open Workbook Names

Ever want to see a list of all the workbooks that are open? If you open more than nine, Excel only displays the first ...

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 six less than 7?

2026-06-11 09:37:55

J. Woolley

My Excel Toolbox includes the following dynamic array function:
    =ListUserStatus([SkipHeader])
This function lists name, last activity (date/time), and type (exclusive/shared) for each user that has the formula cell's workbook open. Here's an abbreviated version:

Function ListUserStatus()
    Dim v As Variant, A() As String, T() As String, n As Long
    With Application
        If TypeOf .Caller Is Range Then
            .Volatile
            v = .Caller.Worksheet.Parent.UserStatus
        Else
            v = ActiveWorkbook.UserStatus
        End If
    End With
    n = UBound(v)
    If n = 0 Then ListUserStatus = "No User Status": Exit Function
    ReDim A(0 To n, 0 To 2)
    A(0, 0) = "User"
    A(0, 1) = "Last Activity"
    A(0, 2) = "Type"
    T = Split("Exclusive Shared")
    For n = 1 To UBound(v)
        A(n, 0) = v(n, 1)
        A(n, 1) = CStr(CDate(v(n, 2)))
        A(n, 2) = T(v(n, 3) - 1)
    Next n
    ListUserStatus = A
End Function

See https://sites.google.com/view/MyExcelToolbox
Also, see https://excelribbon.tips.net/T013566_Who_Has_the_Workbook_Open.html


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.