+ Reply to Thread
Results 1 to 28 of 28

Can the .xlsm Protection be compromised so easily!!!

  1. #1
    Forum Contributor
    Join Date
    12-25-2011
    Location
    Lahore, Punjab, Pakistan
    MS-Off Ver
    Excel 2010
    Posts
    287

    Can the .xlsm Protection be compromised so easily!!!

    Hi,

    I am new to VBA world and am learning things very well here.

    I had a belief that .xlsm file can be protected in such a way that others will remain unable to read the code or to make any other change in the cells.

    BUT

    I just came by following link;
    URL Removed by somebody

    Does it mean that VBA Code or Formulas can never be protected?

    Is there some safe way to protect the file so that no one has even a remote chance to reach the code ever???
    Last edited by caabdul; 01-26-2014 at 07:38 PM.

  2. #2
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    Re: Can the .xlsm Protection be compromised so easily!!!

    Nobody ever claimed that Excel's security was impregnable. You should only consider it an impediment to accidental changes by non-malicious users.

    BTW...I removed the URL you posted. This forum does not allow posting instructions to breaking software security.
    Ron
    Former Microsoft MVP - Excel (2006 - 2015)
    Click here to see the Forum Rules

  3. #3
    Forum Contributor
    Join Date
    12-25-2011
    Location
    Lahore, Punjab, Pakistan
    MS-Off Ver
    Excel 2010
    Posts
    287

    Re: Can the .xlsm Protection be compromised so easily!!!

    BTW...I removed the URL you posted. This forum does not allow posting instructions to breaking software security.
    Ok, I didn't realize this. But what is meant by BTW...? I have seen this used also in other posts on this site.


    Well! It means I should start using .pdf because it is something more secure than .xlsm (No one can see the code behind the screen)

  4. #4
    Forum Contributor
    Join Date
    12-14-2013
    Location
    Tilburg, Nederland
    MS-Off Ver
    Excel 2010
    Posts
    256

    Re: Can the .xlsm Protection be compromised so easily!!!

    Password protection for opening the file is not easy to crack.....

  5. #5
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,422

    Re: Can the .xlsm Protection be compromised so easily!!!

    BTW means "By The Way ...".

    Basically, if you want to stop somebody/anybody from accidentally making changes to your data, formula and/or code, then you should be able to achieve that. If you are trying to protect your intellectual property, you are wasting your time.

    So, if seeing the calculated values is all they need, a .pdf file is probably your best bet.

    Regards, TMS
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  6. #6
    Forum Contributor
    Join Date
    12-25-2011
    Location
    Lahore, Punjab, Pakistan
    MS-Off Ver
    Excel 2010
    Posts
    287

    Re: Can the .xlsm Protection be compromised so easily!!!

    Actually I am a chartered accountant and I was dreaming to build a full feature bookeeping solution in Excel, at least before I came to know about unprotection thing.

    As far as functionality is concerned, I am 100% sure that Excel based full feature bookkeeping solution [Like MYOB, ZOHO etc.] can be made but it can never be commercial in this form.
    What do you people suggest now?
    Can I use VBA Macros knowledge to build such software (Fully Protected) in some form other than excel?
    Last edited by caabdul; 01-26-2014 at 08:00 PM.

  7. #7
    Forum Contributor
    Join Date
    12-14-2013
    Location
    Tilburg, Nederland
    MS-Off Ver
    Excel 2010
    Posts
    256

    Re: Can the .xlsm Protection be compromised so easily!!!

    Quote Originally Posted by caabdul View Post
    Can I use VBA Macros knowledge to build such software (Fully Protected) in some form other than excel?
    If you want to build software what can be protected, then check out VisualStudio for building a project that can be deployed.
    Note: I think there is no 100% Protection possible, what ever solution you use for building the project.

  8. #8
    Forum Contributor
    Join Date
    12-25-2011
    Location
    Lahore, Punjab, Pakistan
    MS-Off Ver
    Excel 2010
    Posts
    287

    Re: Can the .xlsm Protection be compromised so easily!!!

    I have found a macro name as follows,

    -Deleted- Sorry posted by error in wrong topic

  9. #9
    Forum Contributor
    Join Date
    12-25-2011
    Location
    Lahore, Punjab, Pakistan
    MS-Off Ver
    Excel 2010
    Posts
    287

    Re: Can the .xlsm Protection be compromised so easily!!!

    Hello everybody,

    I just found a file that has strong protection. Kindly find the attachment. We cannot edit/add macros in this file.

    Can somebody describe how macros can be protected in same manner as in the attached file. Please note that sheets contents are not protected.
    Attached Files Attached Files

  10. #10
    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,929

    Re: Can the .xlsm Protection be compromised so easily!!!

    caabul, I would like to bet money that it would not take more than a few minutes to break that code. I am not able, but I know others that are.

    The point here is that no matter how you try to protect an excel file, the protection offered by excel is weak and not to be relied on
    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

  11. #11
    Forum Contributor
    Join Date
    12-25-2011
    Location
    Lahore, Punjab, Pakistan
    MS-Off Ver
    Excel 2010
    Posts
    287

    Re: Can the .xlsm Protection be compromised so easily!!!

    Hmmm!

    How much?

  12. #12
    Forum Contributor
    Join Date
    12-25-2011
    Location
    Lahore, Punjab, Pakistan
    MS-Off Ver
    Excel 2010
    Posts
    287

    Re: Can the .xlsm Protection be compromised so easily!!!

    FDibbins, what you are claiming, is a different thing.

    But truth is that you are a forum moderator and you say,
    I am not able,
    Then I must consider that above file has a good protection, yes some people can break it in minutes but the people I will be dealing with will never be able to do this at least.

    Thus kindly help me learn how I can apply thatprotection.

    Any help will be well appreciated

  13. #13
    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,929

    Re: Can the .xlsm Protection be compromised so easily!!!

    My reason for saying I am not able, is because VBA is my weakness

  14. #14
    Forum Contributor
    Join Date
    12-25-2011
    Location
    Lahore, Punjab, Pakistan
    MS-Off Ver
    Excel 2010
    Posts
    287

    Re: Can the .xlsm Protection be compromised so easily!!!

    Yes, everybody has strong points so does weak points.

    Can you please guide me how to apply this protection

  15. #15
    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,929

    Re: Can the .xlsm Protection be compromised so easily!!!

    No I cant - my VBA is weak

  16. #16
    Valued Forum Contributor AlvaroSiza's Avatar
    Join Date
    09-19-2007
    Location
    Staffordshire
    MS-Off Ver
    2007
    Posts
    591

    Re: Can the .xlsm Protection be compromised so easily!!!

    Perhaps it was the Noid who should have avoided me...
    If you are satisfied with my solution click the small star icon on the left. Thanks
    1. Make a copy of your workbook and run the following code on your copy (just in case)
    2. With excel open, press ALT+F11 to open the Visual Basic Editor (VBE). From the "Insert" menu, select "Module".
    3. Paste the code from above into the empty white space. Close the VBE.
    4. From the developer tab, choose "Macros", select the Sub Name, and click "Run".

  17. #17
    Registered User
    Join Date
    05-29-2005
    MS-Off Ver
    2013
    Posts
    36

    Re: Can the .xlsm Protection be compromised so easily!!!

    Hi

    Sorry to interrupt the conversation... New password to view the code is 123

    Cheers

    Mod note: File removed for secuity reasons
    Last edited by FDibbins; 02-05-2014 at 04:38 PM.

  18. #18
    Forum Expert millz's Avatar
    Join Date
    08-14-2013
    Location
    Singapore
    MS-Off Ver
    Excel, Access 2016
    Posts
    1,694

    Re: Can the .xlsm Protection be compromised so easily!!!

    Quote Originally Posted by caabdul View Post
    Thus kindly help me learn how I can apply thatprotection.
    For that protection, just go to VB editor, right click on your .xlsm file from the project explorer, choose VBAproject properties. Click Protection tab, choose lock project, and enter your password. Then close the file and re-open and it should be locked.
    多么想要告诉你 我好喜欢你

  19. #19
    Forum Contributor
    Join Date
    12-14-2013
    Location
    Tilburg, Nederland
    MS-Off Ver
    Excel 2010
    Posts
    256

    Re: Can the .xlsm Protection be compromised so easily!!!

    VBA password can be cracked within 2 minutes without expensive programs.
    I did know it could be done quickly, but just timed myself on the 'BINMacro.xlsm' file. It took me 1 minute and 9 seconds to remove the password with out any special cracking program.
    So if some one wants your code they will get it. Use password protection for n00bs messing up your code... And not for hiding code for other programmers......

  20. #20
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,422

    Re: Can the .xlsm Protection be compromised so easily!!!

    I said, within half an hour or so of your OP:

    Basically, if you want to stop somebody/anybody from accidentally making changes to your data, formula and/or code, then you should be able to achieve that. If you are trying to protect your intellectual property, you are wasting your time.

    And then you said:

    Actually I am a chartered accountant and I was dreaming to build a full feature bookeeping solution in Excel, at least before I came to know about unprotection thing.

    And now:

    ... but the people I will be dealing with will never be able to do this at least.

    If what you create has value to people, I'm sure they will get behind your code protection. As has been explained and demonstrated, it isn't hard.

    Regards, TMS

  21. #21
    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,929

    Re: Can the .xlsm Protection be compromised so easily!!!

    Well, my money is safe, as I knew it world be

  22. #22
    Forum Contributor
    Join Date
    12-25-2011
    Location
    Lahore, Punjab, Pakistan
    MS-Off Ver
    Excel 2010
    Posts
    287

    Re: Can the .xlsm Protection be compromised so easily!!!

    If what you create has value to people, I'm sure they will get behind your code protection. As has been explained and demonstrated, it isn't hard.

    Regards, TMS
    Nice analysis, I have some common sense saved for further steps. Thank you for your advice.

  23. #23
    Forum Contributor
    Join Date
    12-25-2011
    Location
    Lahore, Punjab, Pakistan
    MS-Off Ver
    Excel 2010
    Posts
    287

    Re: Can the .xlsm Protection be compromised so easily!!!

    Quote Originally Posted by FDibbins View Post
    Well, my money is safe, as I knew it world be
    Yes, a bet would have certainly cost me.
    But I am still thinking about it! (about protection, not about bet)

  24. #24
    Forum Contributor
    Join Date
    12-25-2011
    Location
    Lahore, Punjab, Pakistan
    MS-Off Ver
    Excel 2010
    Posts
    287

    Re: Can the .xlsm Protection be compromised so easily!!!

    Quote Originally Posted by ascool_asice View Post
    Hi

    Sorry to interrupt the conversation... New password to view the code is 123

    Cheers
    You would be real expert in cracking

    May I ask if some protection has challenged you for more than 2 minutes? What is the best protection TACTIC that you have seen so far? I know there are very remote chances of this but there must be something.

  25. #25
    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,929

    Re: Can the .xlsm Protection be compromised so easily!!!

    caabdul, I think you have had the answers you need here. excel security is for those that dont know excel, and is no deterant to those that know what they are doing.

    With that said, the forum is completely against any code/password/security breaking/cracking. I know that was not the purpose or intent of this thread, but it is starting to head that way.

    Unless you have further questions regarding applying protection to workbooks - given the acknowledged weakness there-of - I suggest that you mark this thread solved

  26. #26
    Forum Contributor
    Join Date
    12-25-2011
    Location
    Lahore, Punjab, Pakistan
    MS-Off Ver
    Excel 2010
    Posts
    287

    Re: Can the .xlsm Protection be compromised so easily!!!

    FDibbins

    Some questions are popping in my mind, although I have accepted that Excel Protection is weak to date.

    I want to know, when we unlock/crack/unprotect an excel vba based file, does some EVENT happen there?

  27. #27
    Forum Guru Izandol's Avatar
    Join Date
    03-29-2012
    Location
    *
    MS-Off Ver
    Excel 20(03|10|13)
    Posts
    2,581

    Re: Can the .xlsm Protection be compromised so easily!!!

    No there is no event. "Resistance is futile."
    • Please remember to mark threads Solved with Thread Tools link at top of page.
    • Please use code tags when posting code: [code]Place your code here[/code]
    • Please read Forum Rules

  28. #28
    Forum Contributor
    Join Date
    12-25-2011
    Location
    Lahore, Punjab, Pakistan
    MS-Off Ver
    Excel 2010
    Posts
    287

    Re: Can the .xlsm Protection be compromised so easily!!!

    I surrender!!

+ 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. Split .xlsm workbook into multiple xlsm workbooks w/ 1 tab each
    By JenBR in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 01-23-2014, 07:05 PM
  2. Replies: 2
    Last Post: 10-04-2013, 10:12 AM
  3. [SOLVED] VBA noob. Need help with reformatting compromised data
    By mea02300 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 06-26-2013, 04:09 PM
  4. Protected Sheet and Locked Cells Compromised!
    By Winon in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 06-04-2012, 10:15 AM
  5. Sort function - line integrity compromised
    By marsseen in forum Excel General
    Replies: 3
    Last Post: 06-22-2009, 12:38 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