+ Reply to Thread
Results 1 to 6 of 6

date column to look up todays date and copy/paste in same row as date lookup

  1. #1
    Registered User
    Join Date
    03-20-2012
    Location
    usa
    MS-Off Ver
    Microsoft 365 MSO Version 2304
    Posts
    39

    Question date column to look up todays date and copy/paste in same row as date lookup

    HI there, searched but did no find anything similar to what I am trying to do. I havea workbook where Column A is a listing of dates in ascending older. I have data in cells V1:AH1 and is a vlookup based on todays date that's pulling from another tab with just data.

    i'd like to run a macro that looks up the date in column A and if it matches todays date then it would copy the data range in cells V1:AH1 and paste into the same row as the date in Column A.

  2. #2
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,448

    Re: date column to look up todays date and copy/paste in same row as date lookup

    Welcome to the forum

    Please attach a sample workbook (not a picture or pasted copy). Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.

  3. #3
    Registered User
    Join Date
    03-20-2012
    Location
    usa
    MS-Off Ver
    Microsoft 365 MSO Version 2304
    Posts
    39

    Re: date column to look up todays date and copy/paste in same row as date lookup

    thanks. file attached.
    Attached Files Attached Files

  4. #4
    Forum Expert PaulM100's Avatar
    Join Date
    10-09-2017
    Location
    UK
    MS-Off Ver
    Office 365
    Posts
    2,108

    Re: date column to look up todays date and copy/paste in same row as date lookup

    Try this, but I would change ActiveSheet to your actual Sheet name
    Please Login or Register  to view this content.
    Click the * to say thanks.

  5. #5
    Registered User
    Join Date
    03-20-2012
    Location
    usa
    MS-Off Ver
    Microsoft 365 MSO Version 2304
    Posts
    39

    Re: date column to look up todays date and copy/paste in same row as date lookup

    alright, let me test it out and will report back. thanks in advance!

  6. #6
    Registered User
    Join Date
    03-20-2012
    Location
    usa
    MS-Off Ver
    Microsoft 365 MSO Version 2304
    Posts
    39

    Re: date column to look up todays date and copy/paste in same row as date lookup

    had a compile error but I then added the line to set dim the cell as range to make it work. thanks again for your help PaulM100!
    PHP Code: 
    Sub FindDate()
    Dim cell As Range
    ActiveSheet
    .Range("V1:AH1").Copy
    For Each cell In Sheets("WIP").Range("A2:A1000")
        If 
    cell.Value = [Today()] Then
        cell
    .Offset(01).PasteSpecial xlPasteValues
        End 
    If
    Next

    End Sub 

+ 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. Replies: 3
    Last Post: 04-08-2016, 09:11 AM
  2. [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
  3. I want to find the difference between todays date and the Date in the 10 column in VBA
    By erickmcburger in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-23-2015, 07:29 AM
  4. [SOLVED] getting total from column if todays date is equal to or greater than date column
    By peterjb44 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 12-11-2013, 07:43 PM
  5. reference column date (yesterday) to get Month(Date) for copy paste
    By jukabub in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-09-2013, 03:52 AM
  6. lookup unique value in column A then display todays date eight columns across ??
    By michaelproctor001 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-02-2013, 11:14 AM
  7. Replies: 3
    Last Post: 12-10-2012, 06:57 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