![]() |
Determine Workbook Mode
The first line in this if-statement is incorrect. What would be the correct
syntax? If ActiveWorkbook.Mode < xlReadOnly Then ActiveWorkbook.ChangeFileAccess Mode:=xlReadOnly End If |
Determine Workbook Mode
If Not ActiveWorkbook.ReadOnly Then
ActiveWorkbook.ChangeFileAccess Mode:=xlReadOnly End If Mike H. wrote: The first line in this if-statement is incorrect. What would be the correct syntax? If ActiveWorkbook.Mode < xlReadOnly Then ActiveWorkbook.ChangeFileAccess Mode:=xlReadOnly End If |
All times are GMT +1. The time now is 07:57 PM. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com