In some cases you need to create a new workbook and copy some data from locked workbook to unlocked one. By default this new file is locked with settings copied from source workbook. To make this file unlocked you should use LockXLSRuntime.UnlockWorkbook method.
LockXLSRuntime.UnlockWorkbook( < workbook object > As Excel.Workbook )
workbook object is an object which represents workbook you want to unlock. This is not a workbook name!
Be careful if you are using Workbooks("WorkbookName") statement to get Workbook object. If workbook with this name is not opened, you will get "Subscript is out of range" error.
See Also