+ Reply to Thread
Results 1 to 9 of 9

Need Password to protect Work Sheet.

  1. #1
    Registered User
    Join Date
    05-09-2013
    Location
    Bangladesh
    MS-Off Ver
    Office 365
    Posts
    29

    Need Password to protect Work Sheet.

    i have a macro enabled excel file which is protected with password but when i email this to my friend he can easily unprotected the sheet without having any password.

    How the thing happens i dont know. Can anyone say how can i protect formula and formatting of my sheet.


    Thanks in advance


    Naharul

    Review => Protect Sheet => 4 digit Password with permission to select only unprotected cells.

    Please note that I am using Excel 2016. I have mail (via official outlook version) the document to one of my friend (he is using excel 2007). When i reach to him, after downloading the file, he just click on Review=> Unprotect Sheet and no dialog box appeared and the sheet has lost its protection. I am surprised and I have mail the file to some one else who is also using Excel 2007 and the same thing happen. When i am using Pen Drive to transfer the file, its security is sustained.

    Please help.

    Naharul
    Last edited by davesexcel; 01-23-2020 at 03:59 AM.

  2. #2
    Forum Contributor
    Join Date
    11-10-2017
    Location
    INDIA
    MS-Off Ver
    365
    Posts
    184

    Re: Need Password to protect Work Sheet.

    Hi,

    I can't explain how it happened but could only suggest to compress the file and mail the receiver .Zip file.
    *If you wish you click on *,a way to say ThankYou

  3. #3
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,933

    Re: Need Password to protect Work Sheet.

    If you dont set up a password for the file, you are not protecting the file. If you only set PW at sheet level, anyone can get in and disable that
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  4. #4
    Registered User
    Join Date
    05-09-2013
    Location
    Bangladesh
    MS-Off Ver
    Office 365
    Posts
    29

    Re: Need Password to protect Work Sheet.

    but if i protect the workbook, macro does not work. Then what to do??? Is there any VBA code to protect the formula of the sheets?

  5. #5
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,481

    Re: Need Password to protect Work Sheet.

    What was the result of the 2nd post?

  6. #6
    Forum Expert
    Join Date
    10-02-2014
    Location
    USA
    MS-Off Ver
    2016
    Posts
    1,222

    Re: Need Password to protect Work Sheet.

    Quote Originally Posted by sajib_148 View Post
    I have mail (via official outlook version) the document to one of my friend (he is using excel 2007). When i reach to him, after downloading the file, he just click on Review=> Unprotect Sheet and no dialog box appeared and the sheet has lost its protection. I am surprised and I have mail the file to some one else who is also using Excel 2007 and the same thing happen. When i am using Pen Drive to transfer the file, its security is sustained.
    So a few things here. Anytime something in a file stops working when being sent via email but works using other means of xfer, the likely explanation is the email system is scanning and stripping the files of something. This could be AV software, the mail server, etc. From your explanation of the circumstances, this is likely whats happening...either your email system or theirs could be doing this. This is easy to test, create a sample file with the protection applied, send via whatever email systems is causing the issue, confirm it is a problem in the sample. If so, then send/receive using personal email accounts...if it works the specific email systems originally used are causing the problem.

    Next, its important to understand that Worksheet, Workbook and VBA protections is not a means of security, its a means to prevent mistakes. Whats that mean?

    Worksheet, Workbook and VBA protection (henceforth called "protection(s)") are not secure ways to prevent anything or safeguard data/IP/etc. They can be easily circumvented by anyone with the ability to do so or 5 mins to Google how. The point of protections is to prevent undesirable changes to aspects of a file, like accidentally over writing a formula or replacing something.
    Ways to get help: Post clear questions, explain your overall goal, supply as much background as possible, respond to questions asked of you by those trying to help and post sample(s) files.

    "I am here to help, not do it for people" -Me

  7. #7
    Registered User
    Join Date
    05-09-2013
    Location
    Bangladesh
    MS-Off Ver
    Office 365
    Posts
    29

    Re: Need Password to protect Work Sheet.

    Ok. Finally i got a solution. But one problem is arised. I have used following code in workbook:

    Please Login or Register  to view this content.
    But the problem is that when I opened the document, Dialog box for unprotect password is asked for. Afte clicking cancel, it goes away. How can i get rid out of this.
    Last edited by sajib_148; 02-12-2020 at 06:50 AM.

  8. #8
    Registered User
    Join Date
    05-09-2013
    Location
    Bangladesh
    MS-Off Ver
    Office 365
    Posts
    29

    Re: Need Password to protect Work Sheet.

    Quote Originally Posted by davesexcel View Post
    What was the result of the 2nd post?
    Same as previous.

  9. #9
    Registered User
    Join Date
    05-09-2013
    Location
    Bangladesh
    MS-Off Ver
    Office 365
    Posts
    29

    Re: Need Password to protect Work Sheet.

    ok. i have already done it.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Vba to password protect sheet
    By jedoob in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-07-2016, 03:48 PM
  2. [SOLVED] Protect a sheet with a password, but secure the password
    By JimDandy in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-16-2013, 01:59 AM
  3. Protect sheet with 2 or more password
    By iazis in forum Excel General
    Replies: 3
    Last Post: 05-02-2012, 07:07 AM
  4. [SOLVED] Protect all with password, except 1 sheet?
    By Lewej23 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-28-2012, 12:07 PM
  5. Password protect a sheet
    By Wade LEES in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-25-2009, 08:33 AM
  6. Password Protect won't work properly
    By HBF in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-28-2009, 03:35 PM
  7. Protect Sheet & Password Protect Code
    By KLahvic in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 05-13-2009, 04:08 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1