+ Reply to Thread
Results 1 to 5 of 5

How to deny deleting content in cells once entered

  1. #1
    Registered User
    Join Date
    07-30-2014
    Location
    Muscat
    MS-Off Ver
    window 2007
    Posts
    32

    How to deny deleting content in cells once entered

    Hi to all
    I'm very new to using VBA with excel. What I seek is very straight forward as below;
    1. I would like to write a code that would allow in data entry into the cells, but would deny deleting, and would lock the continent from editing after 10 minutes of entry .
    2. How would I make the file to be useable only and only if I enable macros otherwise the file becomes unusable.

  2. #2
    Forum Expert
    Join Date
    11-22-2016
    Location
    Cornwall,UK
    MS-Off Ver
    office 365
    Posts
    4,240

    Re: How to deny deleting content in cells once entered

    deleted by kev
    Last edited by kev_; 07-19-2017 at 06:11 AM.
    Click *Add Reputation to thank those who helped you. Ask if anything is not clear

  3. #3
    Forum Expert
    Join Date
    11-22-2016
    Location
    Cornwall,UK
    MS-Off Ver
    office 365
    Posts
    4,240

    Re: How to deny deleting content in cells once entered

    What I seek is very straight forward
    no it is not!


    I would like to write a code that would allow in data entry into the cells, but would deny deleting, and would lock the continent from editing after 10 minutes of entry .
    are you asking for each entry to be timed and then locked after 10 minutes?
    Last edited by kev_; 07-19-2017 at 06:41 AM.

  4. #4
    Forum Contributor HaroonSid's Avatar
    Join Date
    02-28-2014
    Location
    india
    MS-Off Ver
    Excel 2013
    Posts
    2,080

    Re: How to deny deleting content in cells once entered

    Found one more security for my vba project even macro are not enabled.
    this will force to enable the macro every time you open workbook if macro is disabled,

    thaks to the original coder

    Please Login or Register  to view this content.
    Please Login or Register  to view this content.
    Please Login or Register  to view this content.
    hope some one find this one helpful
    Use Code-Tags for showing your code :
    Please mark your question Solved if there has been offered a solution that works fine for you
    If You like solutions provided by anyone, feel free to add reputation using STAR *

  5. #5
    Forum Expert
    Join Date
    11-22-2016
    Location
    Cornwall,UK
    MS-Off Ver
    office 365
    Posts
    4,240

    Re: How to deny deleting content in cells once entered

    How would I make the file to be useable only and only if I enable macros otherwise the file becomes unusable
    One way to achieve this is to save the workbook with only ONE worksheet visible, and that VBA has to be enabled to display the other "important" sheets

    Hide with:
    Please Login or Register  to view this content.
    Can only be made visible again through the use of VBA code:
    Please Login or Register  to view this content.
    Or you could password protect worksheets and unprotect via VBA
    Last edited by kev_; 07-19-2017 at 06:23 AM.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Deleting content from a range of cells
    By Isaacadete in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 11-10-2015, 07:21 AM
  2. [SOLVED] Deleting content of unlocked cells
    By mikerules in forum Excel General
    Replies: 4
    Last Post: 03-21-2014, 01:53 AM
  3. Deleting specified cells based on their content
    By cm22v07 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-25-2010, 09:41 AM
  4. Deleting cells depending on content of another cell
    By drgogo in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 12-18-2008, 10:16 PM
  5. Deleting content in cells based on criteria
    By morris5984 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-06-2008, 11:14 AM
  6. Deleting Cells where content equals "0" or null
    By bm4466 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-03-2006, 02:16 PM
  7. Deny change of value of two target cells / enforce use of macros.
    By Ade P in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-07-2005, 12:06 PM

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