"Read only" warning display

J

Jock

If a user opens a workbook in read only mode is there a way using vba or the
like to have all the fonts and gridlines in grey? On occasion, people will
open a workbook as read only, then make changes because they've forgotten
it's read only and have to exit and start again.
 
S

Smallweed

Look at ReadOnly in VBA Help:

If ActiveWorkbook.ReadOnly Then
(code to make formatting changes you would like)
End If
 
S

Stefi

A possible solution:
Insert this function in a standard module and apply Conditional formatting
with formula =ReadAttr() and gray font and border color:

Function ReadAttr()
ReadAttr = ThisWorkbook.ReadOnly
End Function

Regards,
Stefi

„Jock†ezt írta:
 
S

Stefi

I forgot to add that apply Conditional formatting for all cells!
Stefi


„Stefi†ezt írta:
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top