Solved

Excel Lock File

Posted on 2002-05-29
14
2,072 Views
Last Modified: 2010-08-05
Does anyone know how Excel locks a file?  For example, if I have a document open in Excel, and then I open it in another instance I cannot make changes because the first instance of Excel has "locked" it.

The reason I ask is that I have a problem with Excel crashing.  Because it does not unlock the file, in order to reopen and edit my file I have to reboot my machine.  If I could just delete the lock file then I think I could just start back up at my last save?

Thanks,

Uziel
0
Comment
Question by:Uziel
  • 5
  • 5
  • 4
14 Comments
 
LVL 44

Expert Comment

by:bruintje
ID: 7041765
Hi Uziel,

difficult do you know why it's crashing? a pattern?

-you can try to clean up the windows/temp dir after a crash

:O)Bruintje

0
 
LVL 1

Author Comment

by:Uziel
ID: 7041780
No, it crashes at irregular times.  The latest series is from copying by dragging a sum cell.  That should not happen...

I cleaned the temp file, and hopefully that will work.

Do you understand what I am asking for?  If I knew what file tracked what Excel files are locked, like an Access lock file, then I could just delete it and re-open my file.
0
 
LVL 44

Expert Comment

by:bruintje
ID: 7041822
yeah i got that, only excel makes it's temp files in the temp directory and by cleaning that one up, i looked once in a while for users to see what those files where named because they had crashes too. but it's a bit difficult you've to look for files named *.xls in the temp dirctory and i'm not even sure they're called .xls or something else
0
 
LVL 16

Expert Comment

by:Richie_Simonetti
ID: 7042275
Which version of Excel are you using?, which SP?
0
 
LVL 1

Author Comment

by:Uziel
ID: 7042360
Excel 2000 9.0.4402 SR-1

Does that help?
0
 
LVL 16

Expert Comment

by:Richie_Simonetti
ID: 7042395
No.
did you try reinstalling SP?
0
 
LVL 1

Author Comment

by:Uziel
ID: 7059594
I reinstalled everything.  I cleaned the tmp files.  Nothing really helps...
0
Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

 
LVL 44

Expert Comment

by:bruintje
ID: 7059649
i'm rereading the Q here

For example, if I have a document open in Excel, and then
I open it in another instance I cannot make changes because the first instance of Excel has "locked" it

do you want to open it two times at the same time?

:O)Bruintje
0
 
LVL 1

Author Comment

by:Uziel
ID: 7059753
No.  I want to know if there is a way to "Unlock" a file after I crash.  When I open the file, it becomes locked.  If I crash it stays locked and the only way to unlock it that I know of is to reboot.

0
 
LVL 16

Expert Comment

by:Richie_Simonetti
ID: 7059846
It appears like Excel creates a tmp file in c:\%windir%\temp with name: ~DF*.tmp that cannot be read it or edited.
0
 
LVL 44

Accepted Solution

by:
bruintje earned 50 total points
ID: 7059868
you can also try to Close Excel using Ctrl+Alt+Delete

it seems that when crashing, Excel remains semi-open and it is this semi-open file that prevents you opening normally
0
 
LVL 1

Author Comment

by:Uziel
ID: 7059883
Bingo!  That was it.  As soon as I closed the "shadow" excel with the task manager the file became unlocked.

Thanks!
0
 
LVL 44

Expert Comment

by:bruintje
ID: 7059890
wow glad that did it, funny how we sometimes overlook the most obvious ones to try
0
 
LVL 16

Expert Comment

by:Richie_Simonetti
ID: 7063833
Gee, i was thinking that you need a code solution not a "hard-coded" one! :))
Bruintje, i agree with your last comment also.
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

In this article we discuss how to recover the missing Outlook 2011 for Mac data like Emails and Contacts manually.
Outlook Free & Paid Tools
This video shows the viewer how to set up and create Footnotes in their document. Click on the References tab: Select "Insert Footnote": Type in desired text:
This video walks the viewer through the process of creating envelopes and labels, with multiple names and addresses. Navigate to the “Start Mail Merge” button in the Mailings tab: Follow the step-by-step process until asked to find the address doc…

708 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now