Skip to content

Latest commit

 

History

History
39 lines (24 loc) · 757 Bytes

Excel.Workbook.ReadOnly.md

File metadata and controls

39 lines (24 loc) · 757 Bytes
title keywords f1_keywords api_name ms.assetid ms.date ms.localizationpriority
Workbook.ReadOnly property (Excel)
vbaxl10.chm199133
vbaxl10.chm199133
Excel.Workbook.ReadOnly
f3c0ec74-63af-ed76-f854-ce2382b9fcf3
05/29/2019
medium

Workbook.ReadOnly property (Excel)

Returns True if the object has been opened as read-only. Read-only Boolean.

Syntax

expression.ReadOnly

expression A variable that represents a Workbook object.

Example

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]