+ Reply to Thread
Results 1 to 15 of 15

Copying today's date into cell when multiple data is entered into adjacent cell

  1. #1
    Forum Contributor
    Join Date
    02-01-2013
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    124

    Copying today's date into cell when multiple data is entered into adjacent cell

    Hi,

    I use a macro to copy data from one sheet to another entering data into multiple cells at a time, I need to enter the current date using vba into column C only when data is entered into adjacent cells in column B,D,E,F,G or H.

    Can anyone help with this?

    Thanks

  2. #2
    Forum Contributor
    Join Date
    02-01-2013
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    124

    Re: Copying today's date into cell when multiple data is entered into adjacent cell

    I thought I would just add, I only need the code to follow the data down column B. The previous dates would need to remain static of course, so formulas are no use.

  3. #3
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Copying today's date into cell when multiple data is entered into adjacent cell

    Quote Originally Posted by SChapman View Post
    I thought I would just add, I only need the code to follow the data down column B. The previous dates would need to remain static of course, so formulas are no use.
    Maybe:

    Please Login or Register  to view this content.

  4. #4
    Forum Contributor
    Join Date
    02-01-2013
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    124

    Re: Copying today's date into cell when multiple data is entered into adjacent cell

    This doesn't appear to work or at least I can't get it to. I've attached a copy of the worksheet to help you understand what I require. It includes a macro that links to a command button on another sheet that copies data(I haven't included the other worksheet but you should be able to understand what I am trying to do).

    I hope that helps.

    Thanks
    Attached Files Attached Files
    Last edited by SChapman; 04-05-2013 at 03:57 PM.

  5. #5
    Forum Contributor
    Join Date
    02-01-2013
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    124

    Re: Copying today's date into cell when multiple data is entered into adjacent cell

    Can anyone help with this? :/

  6. #6
    Forum Contributor
    Join Date
    05-16-2012
    Location
    Latina, ITALY
    MS-Off Ver
    Excel 2007--2010
    Posts
    740

    Re: Copying today's date into cell when multiple data is entered into adjacent cell

    Try as I understand puts today's date in column B.
    I put the range from 2 to 50 line edit.
    test.1.xlsm

  7. #7
    Forum Contributor
    Join Date
    02-01-2013
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    124

    Re: Copying today's date into cell when multiple data is entered into adjacent cell

    When I transfer the data it only captures the date in the first cell, the date is to be captured in column C. I am copying data over using the command button on sheet 'League' to sheet 'Data'. I'm not sure whether that is causing the problem or not. I've attached all sheets. Do you mind having a look at it for me?

    Thanks for your help.
    Attached Files Attached Files

  8. #8
    Forum Contributor
    Join Date
    05-16-2012
    Location
    Latina, ITALY
    MS-Off Ver
    Excel 2007--2010
    Posts
    740

    Re: Copying today's date into cell when multiple data is entered into adjacent cell

    try to see if it works.
    I also eliminated the flickering of the video running macro.

    test (All Sheets),2.xlsm

  9. #9
    Forum Contributor
    Join Date
    02-01-2013
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    124

    Re: Copying today's date into cell when multiple data is entered into adjacent cell

    This works perfectly, thanks a lot!!

  10. #10
    Forum Contributor
    Join Date
    02-01-2013
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    124

    Re: Copying today's date into cell when multiple data is entered into adjacent cell

    Is it possible to get the date to copy in column S also?

  11. #11
    Forum Contributor
    Join Date
    05-16-2012
    Location
    Latina, ITALY
    MS-Off Ver
    Excel 2007--2010
    Posts
    740

    Re: Copying today's date into cell when multiple data is entered into adjacent cell

    you can put in S2:
    Please Login or Register  to view this content.
    and drag down.

  12. #12
    Forum Contributor
    Join Date
    02-01-2013
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    124

    Re: Copying today's date into cell when multiple data is entered into adjacent cell

    The dates change each today & need to remain static so a formula unfortunately won't do the job

  13. #13
    Forum Contributor
    Join Date
    05-16-2012
    Location
    Latina, ITALY
    MS-Off Ver
    Excel 2007--2010
    Posts
    740

    Re: Copying today's date into cell when multiple data is entered into adjacent cell

    Sorry, you must also indicate the date in column S?
    Have you used the formula that I sent you? The date remains static as in column C.
    The date is shown in column C and column S of the sheet "data".
    Maybe I did not understand your request?

  14. #14
    Forum Contributor
    Join Date
    02-01-2013
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    124

    Re: Copying today's date into cell when multiple data is entered into adjacent cell

    I did try this but it gives an error and doesn't allow me to apply it ("The formula you typed contains an error")

  15. #15
    Forum Contributor
    Join Date
    05-16-2012
    Location
    Latina, ITALY
    MS-Off Ver
    Excel 2007--2010
    Posts
    740

    Re: Copying today's date into cell when multiple data is entered into adjacent cell

    Let me return to your file as explained above and the formula in column S.

    test (All Sheets),2.xlsm

+ Reply to 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