Consulting

Results 1 to 4 of 4

Thread: macro for protecting cell value from deleting

  1. #1

    macro for protecting cell value from deleting

    Hi,

    Is there any way useing vba code that we can protect particular cells value from deleting

  2. #2
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    Lock those cells (Format>Cells>Protection) and protect the sheet (Tools>Protection>Protect Sheet...).
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

  3. #3
    Actually i am in need of a mecro, that can protect a sheet instead of useing tool|protect...

    pls help with code

    thanks

  4. #4
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    [vba]

    Worksheets("sheet_name").Protect Password:="mypassword"
    [/vba]
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

Posting Permissions

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