Open Workbook Excel Vba Read Only. Only now it asks me if I want to save the file before changing the status - what can I do to eliminate that prompt? I have also tried by removing Readonly:=false lines in below code but still file opens read only.
Only now it asks me if I want to save the file before changing the status - what can I do to eliminate that prompt? Do you want to make your Excel file Read-only so that you are the only person who can make changes. How to open an Excel Workbook in VBA using Workbooks.
Insert a new module from Insert menu.
It is part of workbooks collection.
Returns True if the object has been opened as read-only. 'Open the Excel workbook Set WB = Workbooks. Does it show "We opened this workbook read-only from the server" ? Follow the below steps to use Excel VBA Workbooks.open method.