stormcloud
New Member
- Joined
- Sep 19, 2017
- Messages
- 2
Software situation: Windows 10 and Excel 2013. in an INTRANET there is an attendance list generated by Excel and saved (with VBA) as a pdf-file. If someone wants to modify his attendance record — for example to change his flexible working hours or free time — then he could open the underlying Excel-sheet using Excel through a php-link. So far, so good, this works fine.
Here is the problem: when a second user tries to modify his attendance list, he receives no warning that the Excel-sheet is already open. Both users modify their data, however only the data of the user who last closes the Excel-sheet is saved. The data of the user who first closes is lost (or the inverse—not certain).
If you do the same procedure with the Explorer in WINDOWS, you get the message that the file can be opened in read-only mode.
How should I deal with this case? How can I integrate a VBA-script which prevents the simultaneous access by two or more users?
Here is the problem: when a second user tries to modify his attendance list, he receives no warning that the Excel-sheet is already open. Both users modify their data, however only the data of the user who last closes the Excel-sheet is saved. The data of the user who first closes is lost (or the inverse—not certain).
If you do the same procedure with the Explorer in WINDOWS, you get the message that the file can be opened in read-only mode.
How should I deal with this case? How can I integrate a VBA-script which prevents the simultaneous access by two or more users?