+ Reply to Thread
Results 1 to 5 of 5

Auto Date & Time Fill in

  1. #1
    Registered User
    Join Date
    05-09-2016
    Location
    Baton Rouge, LA
    MS-Off Ver
    Office 2013
    Posts
    7

    Auto Date & Time Fill in

    I want to scan in data in my first column, and then have the date and time auto fill in the next two columns. So basically, if a value exists in Column A, I want Column B to auto Populate the date and Column C to auto populate the time. I also want the date and time to be locked so that the cells cannot be edited. (only taken out by deleting the first row which was scanned in) Does anyone know how I can do this? I am new to Excel and will be taking some advanced courses soon.

  2. #2
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: Auto Date & Time Fill in

    Right Click on the sheet name at the bottom of excel and select view code

    Paste this code ion the module that opens

    Close the module

    Type in a number in column A

    Please Login or Register  to view this content.
    My General Rules if you want my help. Not aimed at any person in particular:

    1. Please Make Requests not demands, none of us get paid here.

    2. Check back on your post regularly. I will not return to a post after 4 days.
    If it is not important to you then it definitely is not important to me.

  3. #3
    Forum Expert
    Join Date
    10-09-2012
    Location
    Dallas, Texas
    MS-Off Ver
    MO 2010 & 2013
    Posts
    3,049

    Re: Auto Date & Time Fill in

    VBA would allow for this, as I don't think a simple formula can lock down a date and time as shown above.
    Please ensure you mark your thread as Solved once it is. Click here to see how.
    If a post helps, please don't forget to add to our reputation by clicking the star icon in the bottom left-hand corner of a post.

  4. #4
    Registered User
    Join Date
    05-09-2016
    Location
    Baton Rouge, LA
    MS-Off Ver
    Office 2013
    Posts
    7

    Re: Auto Date & Time Fill in

    Thank you so much. I have one more question if you don't mind. How do you lock the cell so that they cannot edit the date and time?

    Thanks again!

  5. #5
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: Auto Date & Time Fill in

    That is easily done

    Make it so the user cannot select columns B or C.

    Please Login or Register  to view this content.

+ 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. auto fill date and time
    By LLOYD6664 in forum Excel Programming / VBA / Macros
    Replies: 24
    Last Post: 02-13-2014, 02:57 PM
  2. auto fill-in current date/time and duration
    By aturetsky in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-11-2013, 02:19 PM
  3. Auto Run Macro to fill and lock the date & Time
    By shaikh.2211 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 11-15-2012, 02:49 AM
  4. Auto fill Date + Double click (time stamp)
    By SVTF in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 02-05-2012, 03:29 PM
  5. Auto fill based on Time from and time to
    By ryanmic in forum Excel General
    Replies: 1
    Last Post: 12-09-2011, 03:10 AM
  6. Auto Sort, Auto Lock, Auto Date & Time Stamp
    By suehatesyou in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-23-2010, 02:57 PM
  7. Auto fill date/time
    By albert28 in forum Excel General
    Replies: 11
    Last Post: 07-27-2010, 08:31 AM

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