+ Reply to Thread
Results 1 to 4 of 4

Prevent deleting data in cell WITHOUT protecting the sheet

  1. #1
    Forum Contributor
    Join Date
    06-28-2004
    MS-Off Ver
    Home/Office 2016
    Posts
    246

    Prevent deleting data in cell WITHOUT protecting the sheet

    EXCEL 2010: Cell A1 has 10, Cell B1 has 15 , Cell C1 has =sum(a1+b1)

    The user highlights all cells and hits delete (which clears the data and formula)
    (users do this even after you tell them not to)

    Is there a way to keep C1 with the formula WITHOUT protecting the cell/sheet ?

    I've looked a conditional formatting and data validation, but can't seem to get what I need...
    Last edited by x65140; 06-20-2012 at 09:43 AM. Reason: Solved

  2. #2
    Forum Contributor
    Join Date
    05-04-2012
    Location
    Stamford,Connecticut,USA
    MS-Off Ver
    Excel 2003
    Posts
    105

    Re: Prevent deleting data in cell WITHOUT protecting the sheet

    You probably need to create a delete button, basically do protect the sheet, to avoid users deleting data without using the button, then use the button as the only way for clearing data.

  3. #3
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,091

    Re: Prevent deleting data in cell WITHOUT protecting the sheet

    You could just monitor columns A and B with a Worksheet Chhange event and, whenever there is any change, just put the formula back in column C for the target range.

    Can't give you the code at the moment as I don't have Excel handy.

    Regards, TMS
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  4. #4
    Forum Contributor
    Join Date
    06-28-2004
    MS-Off Ver
    Home/Office 2016
    Posts
    246

    Re: Prevent deleting data in cell WITHOUT protecting the sheet

    Appreciate the input.....thanks!

+ 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