+ Reply to Thread
Results 1 to 6 of 6

how to set security on a worksheet in vba

  1. #1
    Forum Contributor
    Join Date
    12-25-2012
    Location
    gent,belgium
    MS-Off Ver
    Excel 2021
    Posts
    146

    how to set security on a worksheet in vba

    Hi
    the cells with the numbers are cells that de user must be fill in.
    In the calendar i use symbols to set the day of work.
    How can i make that user can't see my vba code and thy can see my password in vba

    kalender.jpg

  2. #2
    Forum Expert Keebellah's Avatar
    Join Date
    01-12-2014
    Location
    The Netherlands
    MS-Off Ver
    Office 2021 (Windows)
    Posts
    7,905

    Re: how to set security on a worksheet in vba

    Hi, in the VBAPRoject's properties you can set the view and password protect the so that it's not visible or accessible except to those that have the password.
    ---
    Hans
    "IT" Always crosses your path!
    May the (vba) code be with you... if it isn't; start debugging!
    If you like my answer, Click the * below to say thank-you

  3. #3
    Forum Contributor
    Join Date
    12-25-2012
    Location
    gent,belgium
    MS-Off Ver
    Excel 2021
    Posts
    146

    Re: how to set security on a worksheet in vba

    and for the cells that are indicated with a value on the picture.
    The user must only fill in these celles
    en on the sheet ether is also my signature and it my not delete

  4. #4
    Forum Expert Keebellah's Avatar
    Join Date
    01-12-2014
    Location
    The Netherlands
    MS-Off Ver
    Office 2021 (Windows)
    Posts
    7,905

    Re: how to set security on a worksheet in vba

    leave only the cells where you want the user to input data unlocked, lock all the other cells

  5. #5
    Forum Contributor
    Join Date
    12-25-2012
    Location
    gent,belgium
    MS-Off Ver
    Excel 2021
    Posts
    146

    Re: how to set security on a worksheet in vba

    as you can see i use a symbol that i put on the day the user take a holidy and the symbol is set by vba
    So i have to unlock the hol calendar

  6. #6
    Forum Expert Keebellah's Avatar
    Join Date
    01-12-2014
    Location
    The Netherlands
    MS-Off Ver
    Office 2021 (Windows)
    Posts
    7,905

    Re: how to set security on a worksheet in vba

    not if you code correctly. When you protect the worksheet using VBA add the parameter UserInterFaceOnly:=True
    I suggest you read on that, google this parameter so you can understand the functionality, will be easier than me explaining it all, but with an image I cannot help anyway I would need a file WITH the vba

+ 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. Worksheet security.
    By wladoD in forum Excel Formulas & Functions
    Replies: 15
    Last Post: 06-30-2017, 12:11 AM
  2. Worksheet security
    By trev233 in forum Excel General
    Replies: 1
    Last Post: 10-08-2011, 11:53 AM
  3. Worksheet Security
    By Wanabe in forum Excel General
    Replies: 3
    Last Post: 08-30-2010, 06:53 PM
  4. Worksheet Security
    By mlk in forum Excel General
    Replies: 2
    Last Post: 03-14-2007, 07:34 PM
  5. Worksheet Security
    By babygoode in forum Excel General
    Replies: 1
    Last Post: 07-28-2006, 08:35 AM
  6. Worksheet Security
    By adey in forum Excel General
    Replies: 0
    Last Post: 11-23-2005, 01:01 PM
  7. [SOLVED] worksheet security
    By Nancine! in forum Excel General
    Replies: 1
    Last Post: 08-18-2005, 07:05 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