Check if the workbook is opened as read-only.(Microsoft Excel Office Scripts)

This section shows you how to check if a workbook is opened in read-only mode.