+ Reply to Thread
Results 1 to 2 of 2

Code to protect sheet

  1. #1
    Conditional Formatting
    Guest

    Code to protect sheet

    what will be the VB code to protect sheet. thnaks

  2. #2
    Gord Dibben
    Guest

    Re: Code to protect sheet

    With a password or not?

    These apply a password.

    Sub SHEETPROTECT()
    ActiveSheet.Protect Password:="justme"
    End Sub

    Sub SHEETUNPROTECT()
    ActiveSheet.Unprotect Password:="justme"
    End Sub


    Note: if youe users are snoopy, you should lock your VBA Project for viewing.

    And be aware that worksheet and workbook protection is easily cracked so
    protecting a sheet only prevents accidents.


    Gord Dibben Excel MVP

    On Wed, 21 Dec 2005 12:42:02 -0800, "Conditional Formatting"
    <[email protected]> wrote:

    >what will be the VB code to protect sheet. thnaks


+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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