+ Reply to Thread
Results 1 to 7 of 7

Validation Needed To Prevent Deletion

  1. #1
    Forum Contributor swordswinger710's Avatar
    Join Date
    02-20-2008
    Location
    Bright, Canada
    MS-Off Ver
    2010
    Posts
    845

    Exclamation Validation Needed To Prevent Deletion

    In many of the cells where I have formulas entered, I have validated them to allow only whole numbers less than zero to prevent users from accidentally changing or deleting the formulas. This seems to work fine until someone hits delete, which allows the user to erase the formula and get away with it. I cannot use protection because then I can't merge cells, so I'm wondering if it's possible to use something else in the Validation field which won't allow anyone to change or delete the formula I worked so hard to come up with.

  2. #2
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200
    You canm't prevent deletion without protection, and you really should not use Merged Cells. They are a feature of Excel that should really be abolished!
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  3. #3
    Forum Contributor Portuga's Avatar
    Join Date
    02-20-2004
    Location
    Portugal
    MS-Off Ver
    365
    Posts
    852
    Without protection you wont be able to prevent users deleting cells.

    Alternatevelly, you could try creating a macro that would merge selected cells. (Ask the VB experts here)
    This macro would unprotect the sheet, merge selected cells and then protect it again.

    If protection is deff not an option you could use the track changes function to find these users and a 9mm.
    If you found the solution to your question. Mark the thread as "Solved"
    Thank everyone that helped you with a valid solution by clicking on their

    There is no such thing as a problem, only a temporary lack of a solution

  4. #4
    Forum Expert dominicb's Avatar
    Join Date
    01-25-2005
    Location
    Lancashire, England
    MS-Off Ver
    MS Office 2000, 2003, 2007 & 2016 365
    Posts
    4,867

    Smile

    Good afternoon Juda

    John Walkenbach demonstrates a very nifty trick here to catch most instances of naughty users attempting to delete data validation cells :

    http://www.j-walk.com/SS/excel/tips/tip98.htm

    HTH

    DominicB

    Edit :
    Quote Originally Posted by Portuga
    you could use the track changes function to find these users and a 9mm
    Ha ha ha!!! Shouldn't really laugh at that should I ...
    Last edited by dominicb; 04-23-2008 at 10:27 AM.
    Please familiarise yourself with the rules before posting. You can find them here.

  5. #5
    Forum Contributor Portuga's Avatar
    Join Date
    02-20-2004
    Location
    Portugal
    MS-Off Ver
    365
    Posts
    852
    Quote Originally Posted by dominicb
    Ha ha ha!!! Shouldn't really laugh at that should I ...
    No dominicb, as a moderator you should not allow members to have this kind of tomfoolery behaviour

  6. #6
    Forum Contributor
    Join Date
    03-24-2005
    Location
    Wisconsin
    MS-Off Ver
    2007
    Posts
    378

    I don't know if this is you answer, but try modifying

    http://pubs.logicalexpressions.com/P...cle.asp?ID=808

    Reading your requirement again, I don't think you are necessarily asking for Validation, but rather ensuring your orginal formulas remain unchanged.

    As indicated in previous comments, deleting a row, column, or individual cell will still change the basic spreadsheet.

    But, you can enter the following code into the Worksheet module for the sheet you wish to maintain the formulas.

    All I did was modify the approach in the above link.
    Please Login or Register  to view this content.
    Hopefully this will also resolve the second question posed at http://www.excelforum.com/showthread...05732#poststop
    Last edited by DCSwearingen; 04-23-2008 at 03:06 PM.
    Thanks!
    Dennis

    I am using Windows 7 and Office 2007, all of my posts are based on this.

  7. #7
    Forum Contributor swordswinger710's Avatar
    Join Date
    02-20-2008
    Location
    Bright, Canada
    MS-Off Ver
    2010
    Posts
    845

    Exclamation Thank You

    Thanks to you all for all your advice. It is greatly appreciated.

+ 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