+ Reply to Thread
Results 1 to 15 of 15

How to setup a cell to accept only one date then move to the next cell

  1. #1
    Registered User
    Join Date
    11-05-2018
    Location
    South Africa
    MS-Off Ver
    MS 2013
    Posts
    12

    How to setup a cell to accept only one date then move to the next cell

    Hello,

    This is my first post on here so sorry if this is posted in the wrong section but I figure you can never go wrong in general right? The question I have is I have an excel sheet that I want to use to enter date lest say in A1 and then automatically move to the next cell lets say A2 (downward)?
    TIA

  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,895

    Re: How to setup a cell to accept only one date then move to the next cell

    Click on File, Options and then Advanced and check the box as shown below.Capture.JPG
    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

  3. #3
    Registered User
    Join Date
    11-05-2018
    Location
    South Africa
    MS-Off Ver
    MS 2013
    Posts
    12

    Re: How to setup a cell to accept only one date then move to the next cell

    Good day Alansidman

    A want to move to the next cell with out Pressing Enter Tab or Arrow
    Can it be done.

  4. #4
    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,895

    Re: How to setup a cell to accept only one date then move to the next cell

    AFAIK--Only way is if you enact some sort of VBA macro. But then you would have to press enter to initiate the macro.

  5. #5
    Registered User
    Join Date
    11-05-2018
    Location
    South Africa
    MS-Off Ver
    MS 2013
    Posts
    12

    Re: How to setup a cell to accept only one date then move to the next cell

    Ok how will I go about to do this?
    so then a will press enter ones to start the macro is that right

    Thank you for you help

  6. #6
    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,895

    Re: How to setup a cell to accept only one date then move to the next cell

    You need to first decide what you want your macro to do, specifically, and then code is written to automate the steps that you would normally do manually.

  7. #7
    Registered User
    Join Date
    11-05-2018
    Location
    South Africa
    MS-Off Ver
    MS 2013
    Posts
    12

    Re: How to setup a cell to accept only one date then move to the next cell

    A want to enter the date in A1 and move to A2 with out Pressing Enter Tab or Arrow and
    enter the date and move to A3 with out Pressing Enter Tab or Arrow AND SO ON AND SO ON.

  8. #8
    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,895

    Re: How to setup a cell to accept only one date then move to the next cell

    If you are entering data manually, then a macro will not work in this situation. AFAIK, if you are entering data manually, then you have to "Enter" it using one of the keys you don't want to touch.

  9. #9
    Registered User
    Join Date
    11-05-2018
    Location
    South Africa
    MS-Off Ver
    MS 2013
    Posts
    12

    Re: How to setup a cell to accept only one date then move to the next cell

    Now you lost me,
    Let me explain like this a have a dropdown list of dates and a want excel to select the next date by it self
    the dates is already inserted a will not be tipping the date in juts want excel to select the next date by it self.

  10. #10
    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,895

    Re: How to setup a cell to accept only one date then move to the next cell

    Ok, give me a realistic scenario. What is the start date and how will excel know what the next date is? How many rows to fill with dates and how will excel know each subsequent date?

  11. #11
    Registered User
    Join Date
    11-05-2018
    Location
    South Africa
    MS-Off Ver
    MS 2013
    Posts
    12

    Re: How to setup a cell to accept only one date then move to the next cell

    The dates will be lets say from 2018/06/01 and 02 and 03 and 04 up to 2018/06/30
    so the rows will be from A1 up to A30.

  12. #12
    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,895

    Re: How to setup a cell to accept only one date then move to the next cell

    Here is some code to do that. Bed time. Signing out.

    Please Login or Register  to view this content.

    How to install your new code
    1. Copy the Excel VBA code
    2. Select the workbook in which you want to store the Excel VBA code
    3. Press Alt+F11 to open the Visual Basic Editor
    4. Choose Insert > Module
    5. Edit > Paste the macro into the module that appeared
    6. Close the VBEditor
    7. Save your workbook (Excel 2007+ select a macro-enabled file format, like *.xlsm)

    To run the Excel VBA code:
    1. Press Alt-F8 to open the macro list
    2. Select a macro in the list
    3. Click the Run button

  13. #13
    Registered User
    Join Date
    11-05-2018
    Location
    South Africa
    MS-Off Ver
    MS 2013
    Posts
    12

    Re: How to setup a cell to accept only one date then move to the next cell

    Work well then there's a run time error 13 what can that be?

  14. #14
    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,895

    Re: How to setup a cell to accept only one date then move to the next cell

    What does the error say, and when you get the error, and you click on debug, which line of code is highlighted. I am surprised as it worked for me before I posted it.

  15. #15
    Registered User
    Join Date
    11-05-2018
    Location
    South Africa
    MS-Off Ver
    MS 2013
    Posts
    12

    Re: How to setup a cell to accept only one date then move to the next cell

    No sorry its fine it was me
    its all most what a want
    Want excel to auto select a date and next date that is already there so it will be like a playback.

+ 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. Enter amounts in one cell, move to a dated cell based on date
    By CSF1988 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 09-11-2018, 01:30 PM
  2. Replies: 15
    Last Post: 03-22-2015, 12:48 PM
  3. [SOLVED] Data Validation won't accept Start Date and End Date from cell values.
    By SpecialBrew in forum Excel General
    Replies: 12
    Last Post: 03-16-2014, 10:23 PM
  4. [SOLVED] Move date shown in cell to new cell directly left once date has passed
    By jamieswift1977 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 04-16-2013, 11:23 AM
  5. accept input and move active cell?
    By JR Hester in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-28-2006, 11:50 AM
  6. format a cell to accept a date or a whole number
    By trick95 in forum Excel General
    Replies: 1
    Last Post: 03-04-2006, 10:00 AM
  7. [SOLVED] Cell won't accept date past year 2009
    By lbrown in forum Excel - New Users/Basics
    Replies: 2
    Last Post: 02-15-2006, 09:55 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