Consulting

Results 1 to 5 of 5

Thread: Solved: securing Vb from users

  1. #1

    Solved: securing Vb from users

    Hi is it possible to set VB so that users of a sheet cant break in and edit my code?

    cheers!

  2. #2
    VBAX Master Killian's Avatar
    Joined
    Nov 2004
    Location
    London
    Posts
    1,132
    Location
    In the VBE, select Tools>VBAProject properties and on the protection tab, check "Lock project for viewing" and set a password.

    It's not the last word in high security - a determined individual will always find a way but it's enough to deter most users.
    K :-)

  3. #3
    Site Admin
    Urban Myth
    VBAX Guru
    Joined
    May 2004
    Location
    Oregon, United States
    Posts
    4,940
    Location
    Hello there,

    No, it's not possible. You can slow some people down though by putting a password on your VBA project. To do so ..

    Alt + F11
    Tools | VBA Project Properties | Protection (tab)
    Enter password, confirm password, ensure you check the box "Lock project for viewing".

    Note that the password will not apply until you save/close/reopen the workbook.

  4. #4
    cheers people!

  5. #5
    Moderator VBAX Master geekgirlau's Avatar
    Joined
    Aug 2004
    Location
    Melbourne, Australia
    Posts
    1,464
    Location
    Don't forget to mark this thread as "Solved" using the Thread Tools option at the top of the window.

Posting Permissions

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