ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Is Workbook read-only because of file permission or because file is already opened? (https://www.excelbanter.com/excel-programming/311881-workbook-read-only-because-file-permission-because-file-already-opened.html)

balexis

Is Workbook read-only because of file permission or because file is already opened?
 
Hi,

When someone opens my Excel workbook, I want to trap with VBA code
wether or not the file is read-only. Then, I want to do different
operations based on the cause of the read-only : file permissions are
read-only (or user does not have write permissions), or another user
already opened the file.

Is there a way to do such a distinction ?

Thank you very much in advance,


Alexis


All times are GMT +1. The time now is 02:47 AM.

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