Weird "File in Use" error opening Excel 2007 Files on the network.

Anonymous
2010-09-15T23:27:23+00:00

We are having weird problems when trying to open 2007 Excel files. I have seen some similar problems listed on different forums etc but nothing that seemed just like what we are experiencing.

Here is our configuration and what I have found out so far.

·       The problem occurs any time we double-click a XLSX file located on the network and Excel is already open

o  We get the “File in Use” error: “<filename> is locked for editing by ‘another user’. Open ‘Read-Only’ or click ‘Notify’ to open read-only and receive notification when the document is no longer in use.

o  We have verified that when this happens *NO ONE* is accessing the file and according to the server the file is not being accessed

·        If Excel *IS NOT* already open it works

·        If the file is located on the local machine it works

·        If we convert the file to a XLS format it works

·        If we copy the file to another network location and double-click it works

o  THE FIRST TIME ONLY

o  After the first time it always fails

·        In Excel if we goto OPEN, browse and then select the file it works

o  The same if we open it from the list of Recent Documents, it works

·        If we click on “Notify” when we get the error message within 10 seconds it says it is available and we click “Read-Write” and it works

·        If we Right-Click on the file and select “OPEN” it works

·        But if fails every time if we double-click a XLSX file that is located on the network when Excel is already open

·        We are running Windows 7 64-bit enterprise edition

·        Office 2007 SP2

·        The Excel Option  Advanced | General, "Ignore other applications that use Dynamic Data Exchange (DDE)" is already unchecked

As you can see we can work around the problem but it is very annoying to our users

If you have seen this problem and know of a fix I would appreciate knowing what you found out.

Microsoft 365 and Office | Excel | For home | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments
Answer accepted by question author
Anonymous
2010-11-15T17:19:08+00:00

We were having this problem with several users from remote locations accessing Excel files on a file server.  The clients are Windows 7 Pro systems connecting to a 2003 R2 server. I suspect this would also occur with 2008/2008r2 servers, but I have not tested it.  It does not occur with XP clients. The file was getting a lock on it even though it was not being opened.  The file lock would last 10-20 seconds before being released. There are three things that contribute to this problem, all of them Windows Explorer related:

  1. Selecting the file in Explorer -just highlight it without opening
  2. Hovering over the filename so that the pop-up file information box was displaying
  3. Using the Preview Pane in Explorer

To fix the problems:

  1. Turn off the Details Pane shown at the bottom of Windows Explorer.  Go to Organize -> Layout -> Details Pane.  That fixes the first problem.
  2. Turn off “Show pop-up description for folder and desktop items”  Click on Tools -> Folder Options.  In the box that opens up, click on the View tab.  Scroll down the list to “Show pop-up description for folder and desktop items” and clear the checkbox and then click OK.  This fixes the second problem.
  3. Turn off Preview Pane.  Go to Organize -> Layout -> Preview Pane. This fixes number 3.

The preview pane is not on by default in the "Details" view, but the other two options are on by default.  The file locks are created when Explorer is gathering file information like size, author, modified date, etc..  I suspect that it would also do this with any other file type, but I have not tested that situation either.  For those of you in a managed environment (I guess that would be anyone reading this since the likelihood of home users having this problem would be approaching zero), I am going to use regmon to see what registry keys are modified by the changes.  I will post them so that you can deploy them to your environment if I find them.

Was this answer helpful?

40+ people found this answer helpful.
0 comments No comments
Answer accepted by question author
Anonymous
2010-11-15T18:58:43+00:00

Here's the keys that you need to set - save the following as a .reg file

Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced]

"ShowInfoTip"=dword:00000000

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Modules\GlobalSettings\Sizer]

"PreviewPaneSizer"=hex:35,00,00,00,00,00,00,00,00,00,00,00,bd,02,00,00

"ReadingPaneSizer"=hex:04,01,00,00,00,00,00,00,00,00,00,00,64,02,00,00

I tried using the HKLM hive and it did not work, so it needs to be a per user policy.  Come on Microsoft, administrators should be able to set these kind of keys at the machine level to apply to all users.

Was this answer helpful?

4 people found this answer helpful.
0 comments No comments
Answer accepted by question author
Anonymous
2010-11-18T20:55:05+00:00

Thanks Pibkac - Coincidentally I had a user tell me earlier this week that they discovered that if they close their Explorer window and "start over" the problem goes away and they can open the file. So you may be onto something that might help us.

Was this answer helpful?

0 comments No comments

40 additional answers

Sort by: Most helpful
  1. Anonymous
    2014-12-05T19:41:02+00:00

    We are having weird problems when trying to open 2007 Excel files. I have seen some similar problems listed on different forums etc but nothing that seemed just like what we are experiencing.

    Here is our configuration and what I have found out so far.

    ·       The problem occurs any time we double-click a XLSX file located on the network and Excel is already open

    o  We get the “File in Use” error: “<filename> is locked for editing by ‘another user’. Open ‘Read-Only’ or click ‘Notify’ to open read-only and receive notification when the document is no longer in use.

    o  We have verified that when this happens *NO ONE* is accessing the file and according to the server the file is not being accessed

    ·        If Excel *IS NOT* already open it works

    ·        If the file is located on the local machine it works

    ·        If we convert the file to a XLS format it works

    ·        If we copy the file to another network location and double-click it works

    o  THE FIRST TIME ONLY

    o  After the first time it always fails

    ·        In Excel if we goto OPEN, browse and then select the file it works

    o  The same if we open it from the list of Recent Documents, it works

    ·        If we click on “Notify” when we get the error message within 10 seconds it says it is available and we click “Read-Write” and it works

    ·        If we Right-Click on the file and select “OPEN” it works

    ·        But if fails every time if we double-click a XLSX file that is located on the network when Excel is already open

    ·        We are running Windows 7 64-bit enterprise edition

    ·        Office 2007 SP2

    ·        The Excel Option  Advanced | General, "Ignore other applications that use Dynamic Data Exchange (DDE)" is already unchecked

    As you can see we can work around the problem but it is very annoying to our users

    If you have seen this problem and know of a fix I would appreciate knowing what you found out.

    We are running Excel 2010 and the same is true for us in a shared network.  We have multiple users and we are experiencing identical problems.  We are running Windows 7 Professional.  I have also noticed some nuances on one computer that when I right click and try to go to properties of the shared Excel file, that in the address bar the "growing green background" shows as if the operating system is searching for something.  As a comparison, I never saw Lotus having a problem with this: It always told me the identity of the person in the file from our address book.  Programming is so very complicated and the way software is integrated these days, it is a wonder that anything works.  I trust that Microsoft is busy trying to solve this critical problem!   

    Was this answer helpful?

    0 comments No comments
  2. Anonymous
    2014-10-30T20:25:31+00:00

    There is wonderful little tool called Process Explorer created by Microsoft that works wonders.  If you run it on your server it will allow you to find this document that is open.  I used this to close a document that was open by 'another user', in which it actually never was!!   I just opened Process Explorer, went to Find> Handle or dll, then just type in some or all of the file name that is locked up.  When you find it in the list click on it then X out of the search window.  It will then  have it highlighted in the main window at the bottom.  Right-click on the process and Close Handle.   This should only be used in extreme cases however when you have no other options!

    Hope this Helps!!!

    Was this answer helpful?

    0 comments No comments