Click here to Skip to main content
15,908,111 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Creating one excel workbook using open xml which contains two tabs i want to make second tab as read only.Is any Solution?
Posted

1 solution

If you think about it; Excel acts as an editor of data, among other things, so there is no such thing as pure "readonly" data. However, there is such thing as "locking" and also validation, which can help to reduce at least accidental modifications. This should give you the idea:
http://www.mrexcel.com/archive/Formatting/13013.html[^].

If you want to do it programmatically, you still have to find appropriate properties in Excel interop:
http://msdn.microsoft.com/en-us/library/microsoft.office.interop.excel%28v=office.11%29.aspx[^],
http://msdn.microsoft.com/en-us/library/ms173186%28v=vs.80%29.aspx[^].

—SA
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900