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

Highlight Duplicates
Home, Conditional Formatting, Highlight Cells, Duplicate records, OK to add pink formatting to any duplicates in selected range.
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,215,066
Messages
6,122,948
Members
449,095
Latest member
nmaske

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