ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Make Workbook ReadOnly (https://www.excelbanter.com/excel-programming/388185-make-workbook-readonly.html)

Alan

Make Workbook ReadOnly
 
From within VBA how can I set the ReadOnly property for the
activeworkbook - setting the ReadOnlyRecommended property for the
workbook to True isn't sufficient for my requirements. Would I have to
drive Explorer to set the property or is there a way of setting the
XlFileAccess to 3 (the online help isn't very helpful!) - in either
case ... how?

Thanks

Alan


Bob Phillips

Make Workbook ReadOnly
 
ActiveWorkbook.ChangeFileAccess xlReadOnly


--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

"Alan" wrote in message
oups.com...
From within VBA how can I set the ReadOnly property for the

activeworkbook - setting the ReadOnlyRecommended property for the
workbook to True isn't sufficient for my requirements. Would I have to
drive Explorer to set the property or is there a way of setting the
XlFileAccess to 3 (the online help isn't very helpful!) - in either
case ... how?

Thanks

Alan




NickHK

Make Workbook ReadOnly
 
Alan,
Maybe the SetAttr Statement

NickHK

"Alan" wrote in message
oups.com...
From within VBA how can I set the ReadOnly property for the

activeworkbook - setting the ReadOnlyRecommended property for the
workbook to True isn't sufficient for my requirements. Would I have to
drive Explorer to set the property or is there a way of setting the
XlFileAccess to 3 (the online help isn't very helpful!) - in either
case ... how?

Thanks

Alan





All times are GMT +1. The time now is 06:04 PM.

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