+ Reply to Thread
Results 1 to 18 of 18

security question

  1. #1
    Forum Contributor
    Join Date
    03-10-2017
    Location
    USA
    MS-Off Ver
    office 2016
    Posts
    393

    security question

    I spent a lot of time developing a workbook and i'm wondering about how to secure it. I put a long password on the project so they cant see the code, and i put a password on each tab, but I just discovered something that makes all project passwords moot. I happened to copy a tab to a new workbook and to my surprise all the code is there, which it should be, but there is now no password protection on it, so whats the use of a VBA project password? Is there a way to make it so someone couldnt take my workbook and simply copy/move all the tabs to a new workbook and see all my code?

    EDIT:

    Think i answered my own question... I have to password protect the workbook so they cant move tabs. Wish I knew that sooner
    Last edited by kevinu; 06-05-2018 at 05:26 PM.

  2. #2
    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,939

    Re: security question

    Security on excel is notoriously weak.

    Perhaps if you save your file as Read Only, it would be more secure?
    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

  3. #3
    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,467

    Re: security question

    Excel is not a secure environment so don't hold your breath.

    That said, you could try protecting the workbook structure ... but I am not 100% sure that will stop a sheet being copied.
    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


  4. #4
    Forum Contributor
    Join Date
    03-10-2017
    Location
    USA
    MS-Off Ver
    office 2016
    Posts
    393

    Re: security question

    FDibbins, unfortunately i cant make it read only its designed to analyse data that is imported by the user. I figured out i have to protect the workbook but not sure if thats an option also. Oh well, thought I'd ask

  5. #5
    Forum Expert tim201110's Avatar
    Join Date
    10-23-2011
    Location
    Russia
    MS-Off Ver
    2016, 2019
    Posts
    2,357

    Re: security question

    What is the purpose of such a protection?

  6. #6
    Forum Contributor
    Join Date
    03-10-2017
    Location
    USA
    MS-Off Ver
    office 2016
    Posts
    393

    Re: security question

    just to keep people honest i guess. I know excel wasnt really secure but didnt know it was that insecure I had made a demo of the program to let people try it out and didnt realize that they could simply copy the tabs to bypass the password

  7. #7
    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,467

    Re: security question

    Why is the code in a sheet module? Only event code should be in there.

    Put all your code in standard modules, including code executed in event handlers and call the code (subroutines and functions) from the event handlers.

    Then, at best they will see minimum code and the sheet code will be useless elsewhere.

  8. #8
    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,467

    Re: security question

    You're welcome. Thanks for the rep.

  9. #9
    Forum Expert tim201110's Avatar
    Join Date
    10-23-2011
    Location
    Russia
    MS-Off Ver
    2016, 2019
    Posts
    2,357

    Re: security question

    Security on excel is notoriously weak
    I think it was made on purpose. A really high level excel users can protect their work. And this work does worth it.

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

    Re: security question

    A really high level excel users can protect their work.
    Not entirely sure that's true. You can go a long way to making it difficult for people to access things they're not meant to. But, being realistic, it's not hard to find out what sheets exist and, from there, extract the data. Formulae and formatting, not so easy, but it depends on what you want/need to know.

  11. #11
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: security question

    my 2 cents...
    imho, only file protection taking time to break, the rest is fun not security

  12. #12
    Forum Expert tim201110's Avatar
    Join Date
    10-23-2011
    Location
    Russia
    MS-Off Ver
    2016, 2019
    Posts
    2,357

    Re: security question

    TMS,
    How fast could you break it?:
    http://spreadsheetpage.com/index.php/pupv7/purchase/
    http://www.decisionmodels.com/FastExcel.htm
    I mean slightly different things
    excel security is just foolproof. But some people want to protect their "know-how" or secure from unscrupulous users. If the latter concerns coworkers, then one should apply more secure soft

  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,939

    Re: security question

    This is fast approaching security breaching/cracking. As such I think that discussion needs to end now

    OP asked about securing their file and were given viable replies.

  14. #14
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: security question

    Yes sir !

  15. #15
    Forum Contributor
    Join Date
    03-10-2017
    Location
    USA
    MS-Off Ver
    office 2016
    Posts
    393

    Re: security question

    TMS, this is off the official topic but im interested. I'm a new user so still learning the best way to program. I appreciate your advise.

  16. #16
    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,467

    Re: security question

    I don't think it's OT to explore ways to address your issue.

    See: https://answers.microsoft.com/en-us/...5-277d47f9b567 for a short summary.

    For more ideas, Google: excel vba what goes in sheet module

    You should get a selection of suggestions and ideas.

    If you want your workbook structure and code reviewed, we'll need to see a sample copy.


    Attach a sample workbook. Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.

  17. #17
    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,467

    Re: security question

    @tim: think I had a go at PUP a long time ago. Can't remember now what the outcome was

    As for FastExcel, who knows?

    However, you're talking about really, really experienced developers who have been involved with Microsoft, Excel, VBA, etc., for many years. But, the majority of folk won't have that level of expertise.

  18. #18
    Registered User
    Join Date
    06-27-2018
    Location
    USA
    MS-Off Ver
    2016
    Posts
    1

    Re: security question

    You can obfuscate the macro code, which will make the code human unreadable, and usually ordinary user will stay away from it. If you just don't want people to see the macro code entirely, there are tools out there to fuse the macro code which is much more secure than Microsoft password. Microsoft password can be easily cracked.
    Last edited by pauly2008; 06-27-2018 at 11:46 PM.

+ 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. Security Question
    By Searaven in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-04-2011, 06:30 PM
  2. Security Question
    By hello_world in forum Excel General
    Replies: 10
    Last Post: 08-01-2007, 02:26 PM
  3. security question
    By AlienBeans in forum Excel General
    Replies: 1
    Last Post: 05-12-2007, 06:29 PM
  4. Struggling with security question
    By Alan M in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-08-2006, 03:35 PM
  5. [SOLVED] Workbook security question
    By Alan M in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-03-2006, 09:50 AM
  6. [SOLVED] Hi,Question about Worksheet Security
    By Philip in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-07-2005, 02:06 PM
  7. [SOLVED] Question about Worksheet Security
    By Philip in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-07-2005, 01:06 PM
  8. Security Question
    By jda_nm in forum Excel General
    Replies: 1
    Last Post: 03-14-2005, 12:58 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