Remind the user they're using a read only file.

wkdintent

New Member
Joined
Jan 5, 2018
Messages
8
Morning all

My company have a data register in Excel which when opened, gives the user the option of opening a read only version instead of the main file. This is useful as those who just want to check an entry can do, without blocking others from adding to the register.

The issue I have is that some sleepier colleagues forget that they are using the read-only version, and begin trying to add entries.

Is there a way for something to appear on the 'add entry' tab to remind them they're using the read only file? Ideally, it would be something like conditional formatting, causing hidden white text to become red. Plan B would be something along the lines of a macro which, when the user goes to the 'add entry' tab, a they get a message box.

Cheers all.
 

Excel Facts

Can you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"
Go to the tab in question. Right click. View code. Paste the below in the 'white space'.

Code:
Private Sub Worksheet_Change(ByVal Target As Range)

If ActiveWorkbook.ReadOnly Then MsgBox "Read Only!"

End Sub

Your file is then going to need to be an xlsm rather than the xlsx it probably is at the moment. This will work provided your users enable macros on opening the workbook.
 
Upvote 0
Ah you beauty. I didn't think it would be that simple. It's already .xlsm as it's other functions run macros all over the place.

Cheers.
 
Upvote 0

Forum statistics

Threads
1,223,903
Messages
6,175,287
Members
452,631
Latest member
a_potato

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