Solved

Protect an excel sheet

Posted on 2014-04-01
6
316 Views
Last Modified: 2014-04-23
Hi Experts,

I have an excel workbook with three sheet, I want to protect sheet2 to ( not allow anyone to copy the contents ).

Would you please advice how to do that.

What I want to do is after update the sheet2 of workbook test.xls put the protection. Anyone can open the workbook only the sheet2 can be view but no one can copy or choose the data of any cells of the sheet2 it will ask for password.


Thanks for your prompt response in advace.
0
Comment
Question by:alam747
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
6 Comments
 
LVL 7

Expert Comment

by:COACHMAN99
ID: 39971017
on the ribbon bar (review) select protect sheet, check the applicable boxes, and add a password.
0
 
LVL 10

Expert Comment

by:Scott Thomson
ID: 39971070
Be Careful of passwords in corporate environments. If you are away or you leave then it can be very hard to get the document back.

Or if you forget the password then you are stuffed. Or if you do want some people to see it but not others then some have the password and you can assure yourself that they give the password to others.

I would suggest using your companies security policy on a folder that contains that file. have them create 2 security groups one for read and 1 for read write. put you and the other trusted people in read write and all others as read.

this will only stop them editing the file not copying data from it.
0
 

Author Comment

by:alam747
ID: 39971227
In above way it still allow to choose cells and copy the contents which I do not want to.
It does not allow to change the data of the sheet2 but do not restrict to copy data from any cell, which I am looking for not allow other to choose to copy and paste it to elsewhere.


Please advice.
0
Ransomware: The New Cyber Threat & How to Stop It

This infographic explains ransomware, type of malware that blocks access to your files or your systems and holds them hostage until a ransom is paid. It also examines the different types of ransomware and explains what you can do to thwart this sinister online threat.  

 
LVL 10

Expert Comment

by:Scott Thomson
ID: 39971231
I would say the ultimate best way to do this is with a macro..

something similar to the one here

https://au.answers.yahoo.com/question/index?qid=20100103214412AAxtRD9

a macro is code within excel that governs the worksheet or document.
0
 
LVL 81

Accepted Solution

by:
byundt earned 500 total points
ID: 39971450
If you protect the worksheet and uncheck the "Select locked cells" option , then the user can't do a copy & paste. They can override this limitation by providing a password.

Note that the user can set a formula (in another worksheet or workbook) to return data from the protected sheet and get a copy of the data that way. You could, of course, use  macro code that:
1.  Won't let the workbook be viewed if VBA isn't enabled (that's one of the things that the code in Scott Thomson's Yahoo link does)
2.  Won't open the workbook if any other workbook is open
3.  Won't allow any other workbook to be opened if your workbook is open
4.  Won't allow the user to view any other worksheets in the workbook
5.  Won't allow the user to insert new worksheets in the workbook
6.  In Excel 2003 and earlier, you can use VBA code to remove the Copy button from the toolbar and shortcut key combination. In Excel 2007 and later, you can remove the Copy button and shortcut key combination by editing the XML in the file (very fiddly, but can be done)

But even if you did all that, there is a widely available macro that can crack the worksheet protection password if it was installed in Excel 2010 or earlier. Once the user runs that macro, he can unprotect the worksheet and copy data readily. Excel 2013 has more sophisticated worksheet protection, but it can still be defeated easily by someone that knows how.

The user can also copy data from a hidden worksheet (one of the things that the code in Scott Thomson's Yahoo link does) into another workbook using formulas if macros are not enabled in your workbook. The user could also use a one-line macro to copy your data from the hidden worksheet into his own workbook.

Bottom line: it is impossible to absolutely, positively prevent the user from copying your data. The best you can do is to make it difficult enough that honest people remain honest. A scoundrel will inevitably be able to defeat your protections.
0
 

Author Closing Comment

by:alam747
ID: 40018880
Thanks
0

Featured Post

Enroll in June's Course of the Month

June's Course of the Month is now available! Every 10 seconds, a consumer gets hit with ransomware. Refresh your knowledge of ransomware best practices by enrolling in this month's complimentary course for Premium Members, Team Accounts, and Qualified Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Microsoft Office Picture Manager is not included in Office 2013. This comes as a shock to users upgrading from earlier versions of Office, such as 2007 and 2010, where Picture Manager was included as a standard application. This article explains how…
How to get Spreadsheet Compare 2016 working with the 64 bit version of Office 2016
The viewer will learn how to create a normally distributed random variable in Excel, use a normal distribution to simulate the return on an investment over a period of years, Create a Monte Carlo simulation using a normal random variable, and calcul…
The viewer will learn how to  create a slide that will launch other presentations in Microsoft PowerPoint. In the finished slide, each item launches a new PowerPoint presentation and when each is finished it automatically comes back to this slide: …

724 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question