+ Reply to Thread
Results 1 to 4 of 4

Protecting Cells AFTER Data is entered.

Hybrid View

  1. #1
    Registered User
    Join Date
    02-02-2006
    Posts
    2

    Question Protecting Cells AFTER Data is entered.

    I want to make a sheet that allows people to enter data, but once entered, it cannot be changed. Is this possible?

  2. #2
    Paul B
    Guest

    Re: Protecting Cells AFTER Data is entered.

    kmd, here is one way, put in sheet code

    Private Sub Worksheet_Change(ByVal Target As Range)
    'Automatically Protecting After Input
    'unlock all cells in the range first
    Dim MyRange As Range
    Const Password = "123" '**Change password here**
    Set MyRange = Intersect(Range("A1:B10"), Target) '**change range
    here**
    If Not MyRange Is Nothing Then
    Unprotect Password:=Password
    MyRange.Locked = True
    Protect Password:=Password
    End If
    End Sub


    --
    Paul B
    Always backup your data before trying something new
    Please post any response to the newsgroups so others can benefit from it
    Feedback on answers is always appreciated!
    Using Excel 2002 & 2003

    "kmd" <kmd.22mdto_1138913705.5589@excelforum-nospam.com> wrote in message
    news:kmd.22mdto_1138913705.5589@excelforum-nospam.com...
    >
    > I want to make a sheet that allows people to enter data, but once
    > entered, it cannot be changed. Is this possible?
    >
    >
    > --
    > kmd
    > ------------------------------------------------------------------------
    > kmd's Profile:

    http://www.excelforum.com/member.php...o&userid=31120
    > View this thread: http://www.excelforum.com/showthread...hreadid=507877
    >




  3. #3
    Registered User
    Join Date
    02-02-2006
    Posts
    2
    That did it. Thank you much for your help, Paul.

  4. #4
    Paul B
    Guest

    Re: Protecting Cells AFTER Data is entered.

    Your welcome

    --
    Paul B
    Always backup your data before trying something new
    Please post any response to the newsgroups so others can benefit from it
    Feedback on answers is always appreciated!
    Using Excel 2002 & 2003

    "kmd" <kmd.22tlba_1139250000.6767@excelforum-nospam.com> wrote in message
    news:kmd.22tlba_1139250000.6767@excelforum-nospam.com...
    >
    > That did it. Thank you much for your help, Paul.
    >
    >
    >
    > --
    > kmd
    > ------------------------------------------------------------------------
    > kmd's Profile:

    http://www.excelforum.com/member.php...o&userid=31120
    > View this thread: http://www.excelforum.com/showthread...hreadid=507877
    >




+ 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