+ Reply to Thread
Results 1 to 3 of 3

Paste by Date & Time

  1. #1
    Registered User
    Join Date
    05-08-2013
    Location
    Chicago
    MS-Off Ver
    Excel 2007
    Posts
    7

    Paste by Date & Time

    Hi,
    I have 2 worksheets each with identical column names A=date, B:E=floats

    I'm trying to paste data from one worksheet "newdata" into another "data".
    I only want to paste the row if the date(column A) from "newdata" is greater than the last date in "data"

    From reading other posts I've written the following, but this seems to only copy and paste the same rows from "data" on top of existing rows. I want it to paste dates that are later than 08/19/13 14:30:00 from new data into data.

    Please Login or Register  to view this content.
    Any help would be greatly appreciated. Thanks in advance.
    intrday_paste_test.xlsm

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

    Re: Paste by Date & Time

    This works. This assumes that date/time values are strictly ascending in both worksheets.

    Normally I would do a copy with a Destination argument but for some reason I got an error, so I did a Copy then PasteSpecial just for expediency.

    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
    05-08-2013
    Location
    Chicago
    MS-Off Ver
    Excel 2007
    Posts
    7

    Re: Paste by Date & Time

    Thank you very much, this is excellent.

+ 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. copy/paste multiple values based on time/date stamp
    By qwerty1945 in forum Excel General
    Replies: 4
    Last Post: 02-18-2012, 04:20 PM
  2. disable copy paste and auto date and time
    By sabilabry in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-30-2011, 03:55 PM
  3. Insert new row then paste time, date, and data from textboxes
    By EJensen in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-04-2010, 03:39 PM
  4. Copy n Paste time date/time format
    By jazbath in forum Excel General
    Replies: 5
    Last Post: 10-12-2009, 07:01 PM
  5. [SOLVED] Calculating days & time left from start date/time to end date/time
    By marie in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 12-07-2005, 10:40 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