Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
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 |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
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 |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
how do I read this part of a vlookup statement !1:65536,12,FALSE | Excel Discussion (Misc queries) | |||
How to use If statement to read a value in a cell | Excel Discussion (Misc queries) | |||
Help getting macro to work in read only | Excel Discussion (Misc queries) | |||
Cant find Macro in read only | Excel Discussion (Misc queries) | |||
Force read-only in auto_open macro | Excel Discussion (Misc queries) |