+ Reply to Thread
Results 1 to 2 of 2

Stop data entry between 2

  1. #1
    Registered User
    Join Date
    10-15-2020
    Location
    England
    MS-Off Ver
    latest
    Posts
    9

    Stop data entry between 2

    I'm trying to lock a cell/worksheet for data entry between 2 date, but im having trouble making my code work between 2 dates. Ive got it working so data entry isn't allowed before or after a certain date but I cant get it so that data entry is only allowed between the 2 dates. The end goal is to not allow data entry at all apart from one cell per sheet. upon entering a specific value in that cell, sort of like a password in effect. Data would be allowed on the entire sheet but only between the specified dates in my VBA code. I'm trying to do this without passwords for the entire workbook as I sort of need the current sheet to expire each month and then each month a new password is given out and entered and then the next sheet is active. Here's my initial code

    Please Login or Register  to view this content.
    Last edited by alansidman; 11-13-2020 at 11:24 AM.

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,873

    Re: Stop data entry between 2

    Code Tags Added
    Your post does not comply with Rule 2 of our Forum RULES. Use code tags around code.

    Posting code between [CODE]Please [url=https://www.excelforum.com/login.php]Login or Register [/url] to view this content.[/CODE] tags makes your code much easier to read and copy for testing, it also maintains VBA formatting.

    Highlight your code and click the # icon at the top of your post window. More information about these and other tags can be found at http://www.excelforum.com/forum-rule...rum-rules.html



    (I have added them for you today. Please take a few minutes to read all Forum Rules and comply in the future.)
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

+ 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] Stop entry overwrite and clear cell data off of entry in another cell
    By COURTTROOPER in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-26-2017, 02:33 PM
  2. [SOLVED] userform stop duplicate entry
    By adamheon in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-29-2016, 10:18 PM
  3. Stop data entry if adjacent cell is blank - VBA code
    By iecbso in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-29-2015, 08:44 AM
  4. Stop cell entry from changing case?
    By dubcap01 in forum Excel General
    Replies: 1
    Last Post: 07-02-2015, 07:36 AM
  5. How do stop excel from scrolling past the last entry?
    By Trina Sulita in forum Excel General
    Replies: 3
    Last Post: 06-21-2006, 06:10 PM
  6. Replies: 1
    Last Post: 11-29-2005, 02:00 PM
  7. [SOLVED] How do I stop automatically copying an entry to the next column?
    By Paul S in forum Excel General
    Replies: 0
    Last Post: 09-22-2005, 09:05 AM

Tags for this Thread

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