Presentation.ReadOnly Property (PowerPoint)
Returns whether the specified presentation is read-only. Read-only.
Syntax
expression .ReadOnly
expression A variable that represents a Presentation object.
Return Value
MsoTriState
Remarks
The value of the ReadOnly property can be one of these MsoTriState constants.
Constant |
Description |
---|---|
msoFalse |
The specified presentation is not read-only. |
msoTrue |
The specified presentation is read-only. |
Example
If the active presentation is read-only, this example saves it as newfile.ppt.
With Application.ActivePresentation
If .ReadOnly Then .SaveAs FileName:="newfile"
End With