Closed Thread
Results 1 to 7 of 7

Macro to automatically enter time & date

  1. #1
    Registered User
    Join Date
    01-26-2011
    Location
    London
    MS-Off Ver
    Excel 2007
    Posts
    8

    Macro to automatically enter time & date

    Hi,

    I would like to enter a time and date automatically each time data is entered into a row.

    for example:

    Cells A1:A300 are for data entry, either free text or from a validated list.

    I would like the corresponding cells B1:B300 to be automatically be populated with the exact time and date that the cells in column A are populated.

    Thanks in advance for your help.........
    Last edited by mellis123; 04-13-2011 at 03:46 AM.

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,705

    Re: Macro to automatically enter time & date

    This code goes into the module for the worksheet containing the data:
    Please Login or Register  to view this content.
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

  3. #3
    Registered User
    Join Date
    01-26-2011
    Location
    London
    MS-Off Ver
    Excel 2007
    Posts
    8

    Re: Macro to automatically enter time & date

    Thats great, many thanks for your swift response.

    Is there away to cover multiple worksheet changes i.e automatically enter a time in column B when a value is changed in column A, but also for instance put another date and time in column D when a value is entered in column C??

    Thanks again

  4. #4
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Macro to automatically enter time & date

    Modify like so
    Please Login or Register  to view this content.
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  5. #5
    Registered User
    Join Date
    06-15-2012
    Location
    Manila, Philippines
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: Macro to automatically enter time & date

    hi guys...

    im just new here and i really need your help guys regarding my excel. i am trying to make a tracker of my computer rentals that i can use in my computer shop. i already input some formula and it pretty works. but my problem is that, every time i add an addition rental on the succeeding rows, the time and date of the previous time is always changing in current time. attached here is the example of my spreadsheet.. sorry for the apperance because im just novice in creating this kind of tracker. hopefully you can help me guys.. i owe this one...thanks again...Untitled.jpg

  6. #6
    Registered User
    Join Date
    06-15-2012
    Location
    Manila, Philippines
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: Macro to automatically enter time & date

    hi guys...

    im just new here and i really need your help guys regarding my excel. i am trying to make a tracker of my computer rentals that i can use in my computer shop. i already input some formula and it pretty works. but my problem is that, every time i add an addition rental on the succeeding rows, the time and date of the previous time is always changing in current time. attached here is the example of my spreadsheet.. sorry for the apperance because im just novice in creating this kind of tracker. hopefully you can help me guys.. i owe this one...thanks again...



    Untitled.jpg


    hope you guys can help me...i need it so badly...

  7. #7
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Macro to automatically enter time & date

    Welcome to the Forum, unfortunately:

    Your post does not comply with Rule 2 of our Forum RULES. Don't post a question in the thread of another member -- start your own thread. If you feel it's particularly relevant, provide a link to the other thread. It makes sense to have a new thread for your question because a thread with numerous replies can be off putting & difficult to pick out relevant replies.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

Closed 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