+ Reply to Thread
Results 1 to 6 of 6

VBA - Copy Row with Todays Date...

  1. #1
    Registered User
    Join Date
    11-14-2013
    Location
    New York
    MS-Off Ver
    Excel 2010
    Posts
    96

    VBA - Copy Row with Todays Date...

    I would like ALL rows to be copied if a column contains 'today's' date. Currently, the below code works - but is only copying the LAST row with a date of today in it. Anything standing out as odd in my code? (sorry in advance, im a rookie)

    Please Login or Register  to view this content.
    Thank you in advance!

  2. #2
    Registered User
    Join Date
    09-26-2016
    Location
    Japan
    MS-Off Ver
    Office 2013
    Posts
    6

    Re: VBA - Copy Row with Todays Date...

    You have not written the "Destination".

  3. #3
    Registered User
    Join Date
    11-14-2013
    Location
    New York
    MS-Off Ver
    Excel 2010
    Posts
    96

    Re: VBA - Copy Row with Todays Date...

    I didnt want a destination because i dont think its possible to paste it into an Outlook email(not as attachment).

    This is part of other code that generates emails. After generating the email ill have the copy ready to go so its just a matter of "CTRL+V" & send. Minor...but something i wanted to attempt with the Date selection.

  4. #4
    Registered User
    Join Date
    11-14-2013
    Location
    New York
    MS-Off Ver
    Excel 2010
    Posts
    96

    Re: VBA - Copy Row with Todays Date...

    any suggestions and reason why it would only be copying the final row with that date?

  5. #5
    Registered User
    Join Date
    09-26-2016
    Location
    Japan
    MS-Off Ver
    Office 2013
    Posts
    6

    Re: VBA - Copy Row with Todays Date...

    It is not only copy the final row.
    Your code runs perfectly but it says just copy to clipboard and loop and copy to clipboard and loop...
    So, after loop,clipboard has been overwritten with new data by every loop.Therefore clipboard has only data of final row.

    Do you want to past the copied data into each email? or all data(if IF statment = True) into an email?
    If you want to past all data into an email, please test below code.
    Please Login or Register  to view this content.

  6. #6
    Registered User
    Join Date
    11-14-2013
    Location
    New York
    MS-Off Ver
    Excel 2010
    Posts
    96

    Re: VBA - Copy Row with Todays Date...

    Excellent explanation there, thank you for realizing how that code was treating the clipboard because i was in left field. The plan is to copy ALL (todays date) rows into the same email, i will try the code above and let you know. Thank you again!

+ 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. [SOLVED] Copy,Cut, Paste Row to different sheet when date entered becomes todays date - Please Help
    By Mykull in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 03-11-2016, 01:55 PM
  2. Autohide Columns that are < todays date and > todays date by 2 & 7 days
    By Dropfiddy in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 09-28-2015, 03:51 AM
  3. [SOLVED] Find Row with Todays Date and Copy certain Cells to New Row.
    By JRidge in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 10-27-2014, 08:07 AM
  4. Copy a worksheet and rename with todays date
    By batchy in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-04-2011, 06:29 AM
  5. Replies: 2
    Last Post: 05-11-2010, 05:24 AM
  6. Using VB to find a range based on todays date and todays date +30
    By Steve_al in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-13-2009, 09:31 AM
  7. Print todays Report using todays date
    By jerryjaysr in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-04-2007, 04:09 PM

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