I recently added some macros into my PERSONAL.XLSB file for Excel and started getting these annoying pop-ups saying that it’s locked for editing. This file loads in the background every time you open a copy of Excel. The point of it is to give you a place to save commonly used macros that will then be loaded and available to you in whatever workbooks you open. The problem with this is that if you open multiple copies of Excel, they all ask the operating system for write permissions in case you want to update the file.
Tip: PERSONAL.XLSB loads as a “Hidden” file and you can see what other hidden files you may have by going to the View tab on the ribbon and pressing the Unhide button. If it is grayed out, you don’t have any hidden files.
Where Personal.xlsb is Located
Now, the Personal.xlsb file lives in your Application Data folder. Typically, you can find it here:
C:\Users\YourWindowsUsername\AppData\Roaming\Microsoft\Excel\XLSTART\
You may also find it somewhere like this:
C:\Users\YourWindowsUsername\Application Data\Roaming\Microsoft\Excel\XLSTART\
C:\Users\Documents & Settings\Application Data\Microsoft\Excel\XLSTART\
If you can’t find it, try replacing “Roaming” with “Local” or do a search.
The Fix
There are two main ways to fix this issue (that I’m aware of) and which to use depends on whether you actually use the file or not.
If you do not use the file:
Simply go into the folder above and delete the file. Once it’s gone, Excel will no longer try to load it and you won’t get this message.
If you do use the file:
If, like me, you find this file helpful, then you can make it read-only. This will force all Excel windows to open it only for reading, not writing. This resolves the conflict that having multiple windows open would normally cause.
To do this:
- Go into the folder above and find the file(s1).
- Highlight them and view their properties (Right-click -> Properties).
- Then, on the General tab under Attributes, check the “Read-only” box.
- Click “OK” and you’re done!
1 You can have more than one PERSONAL.XLSB file. For example, I had both PERSONAL.XLSB and PERSONAL-2.XLSB which would load at startup for me.
Please note that if you want to edit the file again, to add another macro for example, you’ll have to un-check the read-only box, update the file and then recheck it.
Conclusion
I think that for most users, this will be sufficient. If you’re editing your macro file every day, perhaps you need to consider making your macros more generic so they take parameters from, say, an InputBox. 🙂
Drop a comment if you have any questions!
Astralux says:
tnx it was very usefull for me . thats the right answer. be fine
jllums says:
Thank you for the instructions. They were easy to follow and I shared with my end-users. This seems to be one of the newer features when creating macros. I never experienced this issue before Excel 2010…maybe I was just lucky.
Yunit says:
Thanks so much – this has been bugging me for ages, but no where else I checked had the other file location listed. You rock. 🙂
thiru says:
C:\Users\Username\AppData\Roaming\Microsoft\Excel\XLSTART path in wondows 7 or personal.xlsb is locked for editing in win7
Sumit says:
thank you, this fixed the issue. I had made changes to excel 2010 to have each file open in separate window. Anyways, this was very helpful
Alex Fuller says:
This helped me – thanks for the informative article. I had been meaning to put my Personal.xlsb in read-only mode – I had read that it could be done in a forum, but this reminded me how to do it. Thanks!
alicorn2 says:
Ahhhhhh! So much better now, thank you! That’s been driving me nuts for months. Simple read-only fix.
Tom Kreutz says:
I regularly create and use macros. I’ve never seen this problem before (with Excel 2003 and 2010) on Windows XP. Now that I’ve switched to Windows 7 64-bit, I get this message all the time. For example, with Excel 2003 on Windows XP I never had to toggle PERSONAL.xls from read/write to read-only. Can you explain what has changed? Many thanks!
Baja says:
You could post a path to the folder in the form
“C:\Users\%username%\AppData\Roaming\Microsoft\Excel\XLSTART\”
That way it will open on any Windows 7/8 computer.
Brett says:
Thank you. I have been dealing with this for almost 2 years. Thank you, thank you, thank you!
Kriss says:
Great tip, thank you!
GinnyV says:
Thank you! That was really bugging me!
Gilu says:
That was too easy! 😯
Chandra Mohan Singh Rawat says:
Thank you so much , it really works ( C:\Users\___”YOUR user name”__\AppData\Roaming\Microsoft\Excel\XLSTART ) just paste it on your ” my computer web bar ” and delete all excel sheet related to personal.xlsb file ( Shift & delete ) and then it will no longer be in your computer. After that if it will work then please dont forget to leave your comments
Richard Marskell says:
Be careful not to delete it if you actually have something in it. You wouldn’t want to lose your saved macros / functions.
Glad the article helped you! 🙂
Hawa says:
Thanks for the info. Though, I think that hiding is much more convenient to me since neither I want to lose the macro nor see the file everytime I launch my excel app.
http://answers.microsoft.com/en-us/office/forum/office_2007-excel/personalxlsb-opens-when-opening-a-new-file/802a3269-fdb8-48b9-b3a8-c26a4235df05?auth=1
kwheeels@yahoo.com says:
Thank you so much!! That message was getting really annoying! Thank you!
Jeff says:
Thank you! Very Helpful this message was soooooo annoying.
Laurel Kelsey says:
Thank you, easy fix that is only easy if you know! Stopped the annoying message.
Lebo says:
Fantastic post! Thank you.
Tina says:
I was able to stop that “Personal.xlsb is locked for editing” message box from popping up when I try to open a file from a shortcut folder on my desktop, but the file will never open. It just leaves a blank screen. I don’t want to delete the personal.xlsb file as I use numerous macros for file exports on a weekly basis. My workaround is having to open the application then select file, open…. and go through the numerous folders to get to my file. Long, long way around when I can use my shortcuts. How can I fix that please, please?
Nicki says:
Thank you! This has been bugging me forever.
fumy says:
Thank you very much that had help my client you well Done!!
keep post solutions
Excel VBA | Gerdami's Blog says:
[…] SystemRoot.ca, How to fix: File in Use – Personal.xlsb is locked for editing […]
Jennie says:
Thanks you so much! you saved my life
Nathan Schreib says:
Instead of trying to find the right path to the personal file you could unhide then view file info which has the path listed, and right click to open folder location. Checking view only in property then works perfect. Thanks!
Han Schouten says:
This certainly is a solution. But why does Microsoft not address this issue in the first place! Personal.xlsb is meant to share commonly used macro’s, not just over different Excel applications, but also and predominantly over different users. Different users fulfil different roles: e.g. developer and end-user. It would be wise to let only one developer at a time modify personal.xlsb but why making a multi-user provision practically single-user by default?
Rao says:
Cool, i got the solution what i am looking for….Thanks Rao
Anthony says:
THANK YOU! This issue was driving me nuts
Brian Sullivan says:
Hi, Although this seems straight forward but, I had someone manage to set the Personal workbook as read only by opening too many files at once. What I need is for this Personal file in Excel to go back to editable so that they can record the original macro they were planning and others as needed. Right now, she cannot record in the personal workbook. Do you have a solution? Thank you!
Richard Marskell says:
See my comment just before the Conclusion: 🙂
Dan Taylor says:
almost 6 years later and this still applies! Thank you so much Richard! I do use the personal workbook, and so this was fantastic and appears to have solved a few issues I was having.
Kimberly Grose says:
Thank you! This is good! A couple of things. I wondered why I would be getting the message that PERSONAL is locked for editing when I don’t have any other Excel workbooks open and I figured out that if I have my file preview pane open in my Documents Explorer with an Excel worksheet showing in the preview that it would also trigger this, which was surprising to me. My only issue with the Read-Only fix is that every time I open a worksheet I now get the prompt that warns me that it is opening PERSONAL as Read-Only. Do you know how to get rid of that prompt? Couldn’t find anything on the web that didn’t include removing the Read Only status. Kind of funny to fix one problem only to create another that is actually more annoying because it happens EVERY time you open Excel, not just when you have multiple instances open.
Kimberly Grose says:
That works to remove the “locked for editing” pop up, but unfortunately, now I am getting a pop up every time I open Excel notifying me that PERSONAL is a Read-Only copy. I’ve looked around and can’t seem to find an option to turn off that notification. Anyone run into this and find a way to fix it?
Richard Marskell says:
The only thing I can think of is maybe just deleting the file (assuming you’re not using it).
M H says:
I had this issue even when I only had one copy of Excel open (one copy that I could see, anyway). The “unhide” option was greyed out so there where no hidden windows. I went to Task manager and scrolled down to Background processes – and sure enough, a small instance of Microsoft Excel was up and running. After ending that task Excel stopped with the “personal.xlsb is locked” -popup.
Krista says:
THANK YOU SO MUCH, Richard!! I just recently learned how to create a macro, and started having this issue. I really appreciate you taking the time to put this out there!
Angel says:
I have the same problem. The file is always “Locked for editing”. How can I delete the file.
ee says:
this happened to me just now (running windows 10). using your article, i located where this file is, and then i copied it letting windows explorer rename the copy. after it was copied, i deleted the original file then renamed the copy back to the original name. restarted excel and everything seems to be back to normal with no “file in use” error and with no limitations due to the “read only” status from your “if you do use the file” fix.
who knows, as time goes on, maybe the “read only” fix will prove to be the best option for me, depending on if this problem keeps reoccurring. for now, it seems like the “read only” fix is more of a hassle as anytime that i would want to add to the file, i would 1st have to turn off the “read only” status, make my changes, then turn the “read only” back on.
th1421 says:
Having this issue and finding this blog today, I went to look in the XLSTART folder to find 2 files: PERSONAL.xls and PERSONAL.xlsb.
I (renamed and) moved the PERSONAL.xls to an archive. This alone solved the issue.
You should only have one PERSONAL file. PERSONAL.xslb is the one to keep. PERSONAL.xls is outdated and might cause the issue, as Excel tries to save it as an .xlsb.
Mark says:
Thank you: Not only is the annoying query gone, but the blank spreadsheet that was opening is gone also. I did need to re-boot to make the fix work.
md201 says:
This started happening for me today, and I found out why it happened, and therefore how to fix it. It happened because I open a Word file that had links to some excel files (not open), and it asked me whether to update — I said no, and did a bit of word editing, saved the file and closed word. After reading some discussions about the use of personal.xlsb, I realized what happened — so I opened the word file again, said Yes to updating, saved the file, and the problem on opening Excel disappeared. If you have this problem, then just open the Office365 file you recently opened, and let it update.