To make Spreadsheet as read only, you need to protect both Workbook and Worksheet using Protect and ProtectSheet method respectively, like below code example.
Please refer the below UG link for more information.
2X faster development
This page will automatically be redirected to the sign-in page in 10 seconds.
You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.