Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default How to make a worksheet Non-Editable even if extension is changed

I can make a worksheet non editable by using the worksheet property
objExcelSheet.EnableSelection = XlEnableSelection.xlNoSelection

also i am using the Protect document option with password.
The xls file cannot be able to edit. The document protection is achieved good.

The only problem that i am facing is If the xls file is changed to another
excel file extension say .ods (Open Office Excel document) the protection is
breaked. The password is not retained. The user can just uncheck the Protect
document sheet and can able to edit the document.

How to overcome this issue..


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,298
Default How to make a worksheet Non-Editable even if extension is changed

write your code in C# or VB.Net

The reason for protection is primarily to prevent inadverdent loss of data
through user error. Its not really designed for Security per se. Some might
argue otherwise, but given that its so easy to break - as you've demonstrated
- that you should seek alternative solutions. Perhaps if it's formula you
want to protect, then use code to write the formula, calculate then convert
the results to values. Use VERY Hidden sheets and protect the code. A code
breaker cost $25 last I checked...so security? nope

"Radha Krishnan" wrote:

I can make a worksheet non editable by using the worksheet property
objExcelSheet.EnableSelection = XlEnableSelection.xlNoSelection

also i am using the Protect document option with password.
The xls file cannot be able to edit. The document protection is achieved good.

The only problem that i am facing is If the xls file is changed to another
excel file extension say .ods (Open Office Excel document) the protection is
breaked. The password is not retained. The user can just uncheck the Protect
document sheet and can able to edit the document.

How to overcome this issue..


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to make a worksheet non editable ...even file extension change Radha Krishnan Excel Discussion (Misc queries) 0 September 10th 09 07:01 AM
how to make Excel linked to SQL Server 2005 worksheet editable? Permood Excel Discussion (Misc queries) 0 July 18th 08 05:06 PM
How to make combobox non-editable? Yajiv Excel Programming 1 February 25th 08 02:18 PM
How to make cell not editable [email protected] Excel Worksheet Functions 1 August 6th 07 09:11 AM
How do I make editable PDF forms using Excel? Haplo New Users to Excel 5 July 16th 06 12:09 AM


All times are GMT +1. The time now is 09:36 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"