+ Reply to Thread
Results 1 to 1 of 1

Macro to copy rows based on moving date and paste the rows into an identical sheet

  1. #1
    Registered User
    Join Date
    08-26-2013
    Location
    sydney , australia
    MS-Off Ver
    Excel 2010
    Posts
    3

    Macro to copy rows based on moving date and paste the rows into an identical sheet

    Hi this is the code I am trying to develop. I've started it at row 275 and it needs to then run down daily indefinitely. Please help!

    Sub Copypastedata1()
    '
    ' Copypastedata1 Macro
    '

    '
    Sheets("Data Entry Daily FCST.").Activate
    ActiveSheet.Range("$D$9:$DD$931").AutoFilter Field:=1, Criteria1:= _
    xlFilterToday, Operator:=xlFilterDynamic
    For i = 275 To Range("D275").End(xlDown).Row()
    If Range("D" & i).Value = Today Then
    Selection.Copy
    Sheets("Data Entry Daily FCST. Archive").Select
    Range("D & i").Value.Select
    Selection.PasteSpecial Paste:=xlPasteAllUsingSourceTheme, Operation:=xlNone _
    , SkipBlanks:=False, Transpose:=False
    Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
    :=False, Transpose:=False
    Range("A5").Select
    Sheets("Data Entry Daily FCST.").Select
    ActiveSheet.Range("$D$9:$DD$931").AutoFilter Field:=1
    Application.CutCopyMode = False
    Range("B4").Select
    End If
    Next i
    End Sub



    Hi,

    Hoping someone can help me with the code for a macro that I need. The macro needs to copy three rows which are tagged by the day's date.


    e.g. 28/1/2014
    28/1/2014
    28/1/2014


    I need the macro to recognize the date when pressed and copy the corresponding rows of data and paste them into an identical sheet with the same dates. The second sheet is an archive sheet. The date will as per the calendar.

    Please help

    Mark
    Last edited by ivandc1234; 01-28-2014 at 02:45 PM. Reason: additonal information

+ 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 and Paste Rows based on Criteria onto another sheet and sort based on oldest item
    By Kushal8684 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-25-2013, 05:37 AM
  2. Replies: 1
    Last Post: 10-28-2012, 01:13 AM
  3. copy n paste rows based on the specified date range
    By kmahesh in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-10-2012, 02:21 AM
  4. Moving rows of data to a new sheet based on date criteria
    By kaufmann98 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-11-2012, 01:41 PM
  5. [SOLVED] Macro to copy and paste rows to a new sheet based on criteria
    By Belo in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 05-31-2010, 02:25 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