Results 1 to 6 of 6

Thread: Protect my code ? [Resolved]

  1. #1

    Thread Starter
    Hyperactive Member VB4fun's Avatar
    Join Date
    May 2003
    Location
    too far from Fiji
    Posts
    342

    Protect my code ? [Resolved]

    Now that I have gone to all this work....

    In VBA, is there a way to secure the code so someone cant get to it..?

    I have protected the worksheets, etc. but I want to keep the users from getting to the code....

    is this possible ?
    Last edited by VB4fun; Jun 17th, 2003 at 10:36 AM.

  2. #2
    Lively Member
    Join Date
    Jun 2003
    Posts
    114
    compile the database.

  3. #3

    Thread Starter
    Hyperactive Member VB4fun's Avatar
    Join Date
    May 2003
    Location
    too far from Fiji
    Posts
    342
    After looking at my post, I wasnt clear..

    I am working in Excel. While I tried the compile, it did not seem to do much (not like VB anyway).

    But I did go into Project Properties, and clicked on the Protection tab, which allowed me to set passwords. While this isnt exactly what I was looking for, it will help me accomplish what I wanted.

    Thanks for the post, you definately helped !


  4. #4
    Hyperactive Member
    Join Date
    Aug 2002
    Posts
    416
    well, he meant compile the database into a .mde file (by doing this, your code is no longer in the db..... its actually compiled)

  5. #5

    Thread Starter
    Hyperactive Member VB4fun's Avatar
    Join Date
    May 2003
    Location
    too far from Fiji
    Posts
    342
    At the risk of sounding like a complete idiot here, I have to ask a question.

    I have tried using the compile feature, within VBA, within the Project IDE. And it doesnt seem to do much. When I open the worksheet and go to Tools, Macro, Visual Basic Editor, I can still get to the code (when I remove the password mentioned above.)

    I dont seem to find a file, related to my project, which the XLS spreadsheet was compiled into.

    You mention the "db" in your comment....

    We are talking Excel here, and not Access....correct?

    Or am I just not following what you guys are suggesting...?


  6. #6
    Hyperactive Member
    Join Date
    Mar 2002
    Posts
    424
    The guys are talking about Access and you are correct, in Access compiling the database into an MDE will remove the code accessibility. In excel the only way to protect your code is really to put a password on the module.. but Lord help you if you forget what it is..

Posting Permissions

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



Click Here to Expand Forum to Full Width