ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Disable Save As dialog on ReadOnly spreadsheet (https://www.excelbanter.com/excel-programming/305279-disable-save-dialog-readonly-spreadsheet.html)

Andy

Disable Save As dialog on ReadOnly spreadsheet
 
Hi All,
How can I disable the Save As prompt from appearing in a Read Only
spreadsheet?

something along the lines of (pseudo code)

if workbook.readonly then
close the workbook without saving
else
save the changes
end

What event should any code be put in ?

Andy



Kanan

Disable Save As dialog on ReadOnly spreadsheet
 
it definitely should be in auto_close. also the beforesave event in the workbook
event.
hope this helps
kanan

"Andy" wrote:

Hi All,
How can I disable the Save As prompt from appearing in a Read Only
spreadsheet?

something along the lines of (pseudo code)

if workbook.readonly then
close the workbook without saving
else
save the changes
end

What event should any code be put in ?

Andy





All times are GMT +1. The time now is 06:41 AM.

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