title | keywords | f1_keywords | api_name | ms.assetid | ms.date | ms.localizationpriority | ||
---|---|---|---|---|---|---|---|---|
Workbook.ReadOnly property (Excel) |
vbaxl10.chm199133 |
|
|
f3c0ec74-63af-ed76-f854-ce2382b9fcf3 |
05/29/2019 |
medium |
Returns True if the object has been opened as read-only. Read-only Boolean.
expression.ReadOnly
expression A variable that represents a Workbook object.
If the active workbook is read-only, this example saves it as Newfile.xls.
If ActiveWorkbook.ReadOnly Then
ActiveWorkbook.SaveAs fileName:="NEWFILE.XLS"
End If
[!includeSupport and feedback]