+ Reply to Thread
Results 1 to 3 of 3

Locking formulas without password protecting worksheet

  1. #1
    Registered User
    Join Date
    03-02-2006
    Location
    Maine
    Posts
    1

    Locking formulas without password protecting worksheet

    Does anyone know how to lock a particular cell to prevent the changing or erasing of a formula without having to password protect the entire worksheet/workbook?

    My field is showing as locked, but is not preventing the deletion or change of the formula contained there in. We need to share this workbook without having to password protect it.

    Can anyone help?

  2. #2
    Paul B
    Guest

    Re: Locking formulas without password protecting worksheet

    DayStar, you have to protect the sheet for this to work, you don't have to
    put in a password but the sheet must be protected, another option might be
    to warn the person when they select a cell with a formula, want keep them
    from changing or deleting it but might work, you could put some code like
    this in the worksheet code

    Private Sub Worksheet_SelectionChange(ByVal Target As Range)
    If ActiveCell.HasFormula Then
    MsgBox ("Please do not remove or change"), , ("Formula In Cell")
    Else
    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

    "DayStar" <[email protected]> wrote in
    message news:[email protected]...
    >
    > Does anyone know how to lock a particular cell to prevent the changing
    > or erasing of a formula without having to password protect the entire
    > worksheet/workbook?
    >
    > My field is showing as locked, but is not preventing the deletion or
    > change of the formula contained there in. We need to share this
    > workbook without having to password protect it.
    >
    > Can anyone help?
    >
    >
    > --
    > DayStar
    > ------------------------------------------------------------------------
    > DayStar's Profile:
    > http://www.excelforum.com/member.php...o&userid=32083
    > View this thread: http://www.excelforum.com/showthread...hreadid=518370
    >




  3. #3
    Pete_UK
    Guest

    Re: Locking formulas without password protecting worksheet

    Another simple way is to use a different background colour for the
    cells you do not want anyone to edit, eg bright yellow or green - just
    tell your co-workers not to do anything with the coloured cell(s).

    Hope this helps.

    Pete


+ 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