![]() |
Macro Read Only If Statement
I would like to have an if statment in my macro that would check the status
of a workbook, and if the workbook is Read Only do something else. I can do the then and else of the statement, I'm just not sure how to perform the IF part of the statement. So I think my question is what is the code for a workbook in read only status? (Not on the file folder, but because someone else is accessing the file) Thanks |
Macro Read Only If Statement
Hi
Try this: If ActiveWorkbook.ReadOnly Then 'your codeEnd IfRegards,PerVick" skrev i meddelelsen ... I would like to have an if statment in my macro that would check the status of a workbook, and if the workbook is Read Only do something else. I can do the then and else of the statement, I'm just not sure how to perform the IF part of the statement. So I think my question is what is the code for a workbook in read only status? (Not on the file folder, but because someone else is accessing the file) Thanks |
All times are GMT +1. The time now is 12:13 AM. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com