ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   File status = "read only" (https://www.excelbanter.com/excel-programming/440130-re-file-status-%3D-read-only.html)

Barb Reinhardt

File status = "read only"
 
Put something in the "ThisWorkbook" Module in the Workbook_Open event.

You can refer to "ThisWorkbook.ReadOnly and maybe put a msgbox in to let
them know that it's READ ONLY.

--
HTH,

Barb Reinhardt



"Jock" wrote:

On occasion, users have 'forgotten' they are in a WB as 'read only' and then
have to re-enter the data when they go back in with read/write access.
Using VBA, is it possible to put something like:

If WB file status = read only
then sheet1.entire range.cell colour = light grey
else
end if
?
This would make it obvious to anyone using it whether it was read only or not.

Thanks.
--
Traa Dy Liooar

Jock



All times are GMT +1. The time now is 08:27 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com