Excel file edit multiple user issue

nparsons75

Well-known Member
Joined
Sep 23, 2013
Messages
1,256
Office Version
  1. 2016
Hi, I have a file which is located on an internal network. The file needs to be editable at one person at a time. Whoever opens the file first, will be able to edit. Anyone opening after this should be notified that the file is locked due to another user having it open. They will then be notified once the other user closes it. This is how its supposed to work. However, currently I am being told that two users have managed to open the file simultaneously and make changes. One of whom was warned that changes have been made by another user....

The file is NOT shared, I do not have sharing on.

Does anyone know how this can possibly be happening?

Thanks in advance...
 

Excel Facts

Test for Multiple Conditions in IF?
Use AND(test, test, test, test) or OR(test, test, test, ...) as the logical_test argument of IF.
Hi, no they didn't. In some cases the file will open (with read only) attached to the file name at the top. The second person has managed to open the file and make changes. When the first person comes to close the file the message appears saying other changes have been made. This is a big problem as one of them is going to lose their work.
 
Upvote 0
open the workbook, enter VBE (alt-F11)
in the left pane , Projects, dbl-click the ThisWorkbook object
in the right pane, the code area, paste the following:

Code:
Private Sub Workbook_Open()
CheckIsOpen
end sub


Public Sub CheckIsOpen()
If ActiveWorkbook.ReadOnly Then
    MsgBox "The file is in use by another"
    ActiveWorkbook.Close False
End If
End Sub
 
Upvote 0
Hi, thanks, I will give that a go. How come I need to add this, should excel not do this naturally? Or is it that its common to fail on this. Just to help me understand why it's happening. Thank you. I will also feedback once tested.
 
Upvote 0
Hi, this did bring up a message, however, for users that have macros requiring manual enabling, the message will not show until the macro's have been enabled?

Thanks,
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,180
Members
453,021
Latest member
Justyna P

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top