Can This Be Done !?!

liammoohan

Board Regular
Joined
Jan 11, 2008
Messages
72
I currently have a sheet that multiple users will use and at times as was the case on friday two people had accessed the sheet at the same time.

Is there any VB code that can display a msgbox when the sheet is opened read only to prompt the 2nd User as when the sheet is used it needs to save the data the user enters and someone using read only will lose all the data.

Can anyone Help?
 

Excel Facts

Round to nearest half hour?
Use =MROUND(A2,"0:30") to round to nearest half hour. Use =CEILING(A2,"0:30") to round to next half hour.
The user must know they've accessed the file read-only though, when they either bypassed the password box, or bypassed the Read-Only recommended message, or bypassed the "File is in use with another user" message??

If they've missed that, then maybe something like

Code:
Private Sub Workbook_Open()
If Me.ReadOnly Then
    MsgBox "This file is open as read-only...you will not be able to save your changes,", vbExclamation + vbOKOnly, "Oi!"
End If
End Sub

placed in the ThisWorkbook module of the file.
 
Upvote 0

Forum statistics

Threads
1,214,886
Messages
6,122,093
Members
449,064
Latest member
Danger_SF

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