Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Joe
well, this is fairly dramatic: Private Sub Workbook_BeforeClose(Cancel As Boolean) If ActiveWorkbook.ReadOnly Then ActiveWorkbook.Saved = True End If End Sub Private Sub Workbook_Open() If ActiveWorkbook.ReadOnly Then Cells.Interior.ColorIndex = 3 End If End Sub Of course the user would have to enable macros. Regards Trevor "joe" wrote in message ... I'm trying to see if there a way I change colors in an Excel file if the file was open in read-only mode to gave a warning to the user. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How do you save an excel file to be read as IBM-type text file ? | Excel Worksheet Functions | |||
I have a read only xl file, I need it to be read and write | Excel Discussion (Misc queries) | |||
XCEL FILE REC'D AS READ ONLY -- HOW TO NOT BE "READ ONLY" | Excel Discussion (Misc queries) | |||
How can a file be converted from Read-Only to Read/Write | Excel Discussion (Misc queries) | |||
"Unable to read file" error message when opening a Excel file that contains a PivotTable report. | Charts and Charting in Excel |