
- #Excel file is locked for editing by another user upgrade
- #Excel file is locked for editing by another user windows 10
- #Excel file is locked for editing by another user code
- #Excel file is locked for editing by another user windows
#Excel file is locked for editing by another user code
I really don't get it as the password is provided by the VBA code and works fine when the global file isn't locked. But instead I a pop up with a message that the file is protected and a text box to type the password into. I tried a number of things like going to computer management and try finding any opened files however, I can't find any. I closed and I killed excel - even in CMD. When I reopened the file two days ago, it said this file is locked for editing by 'user(me). In addition, when the file is locked I would expect the pop up window with question what to do next: open as read only, notify the user etc. I saved a file in my network drive and closed it. I have tried the second solution from this site:įind out who has Excel file locked for editing. I have also tried to search the folder with the global file for temporary file with name starting with '~$' but I get 'file doesn't exist' message. The problem is that the function never returns any error. MsgBox "Error #" & Str(Err.Number) & " - " & Err.DescriptionĮnd FunctionThe function should return an error when trying to open the file for 'read write' type of access as the file is locked and therefor 'read only'. ' Display the error number and description. Check-outs are not required on the Document Library. As soon as that user closes the Excel client, the lock is removed. A couple times, Ive seen when a user opens it with the Excel client, it then locks the file for editing for other users. Most users open the document with Excel Online. File locked for editing by another user 09:22 AM SGWellens LINK Make sure you are calling Close() on every file object when done with the object (which internally calls Dispose and frees up resources). OllieMille Select the problematic document-click the 'open' tag-select 'edit in teams'-click 'file' and then select 'save as' to save the document. Inside that shared folder, theres an Excel spreadsheet which is password protect, also shared with other users (read-only permission) & the owner (user) of the Excel spreadsheet only has. User have a folder from OneDrive (online) shared with other users. ' If an error occurs, the document is currently open. I have an Excel file shared widely on SharePoint. Excel Spreadsheet Error: Read-only: This workbook is locked for editing by another user. Open strFileName For Binary Access Read Write Lock Read Write As #1 ' the Open operation fails and an error occurs. ' and the specified type of access is not allowed, ' If the file is already opened by another process, Just to test, I added unique permissions to a password protectedĮxcel file and gave the users admin permissions directly to the file and we still encountered the issue.Function FileLocked(strFileName As String) As Boolean
#Excel file is locked for editing by another user windows
I should mention we are opening the files from the "Open with Explorer" option on the document library ribbon in SharePoint Online, so we are opening the files through Windows Explorer / DavPermissions should not be an issue.
#Excel file is locked for editing by another user upgrade
We can't upgrade the users away from Windows 8.1 due to compatibility issues in other software they use.
#Excel file is locked for editing by another user windows 10
I installed Office 2016 on my Windows 10 computer and I do not encounter the same issue. I would like to add all users with the issue are on Windows 8.1. If I can explain more, it happens with every password protected Excel file for the users with the conditions I had mentioned. Yes, we have walked through what you have described.
