+ Reply to Thread
Results 1 to 4 of 4

Find Date Range data's and paste the next sheet blank row.

  1. #1
    Registered User
    Join Date
    09-02-2013
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    87

    Lightbulb Find Date Range data's and paste the next sheet blank row.

    Hi All,


    Please help me to give a macro code for below mentioned file.

    Enter Start & End Date using userform or inputbox and find the date range, then copy entire row in sheet 1 and paste the data's in sheet 2 end of last blank row.

    Dout.xlsx

  2. #2
    Registered User
    Join Date
    09-07-2013
    Location
    dubai
    MS-Off Ver
    Excel 2007
    Posts
    24

    Re: Find Date Range data's and paste the next sheet blank row.

    I am not sure I understand your question. You want to take input from a user in a form into sheet1 and then copy it to sheet2 ?
    Can you not directly copy the data to sheet2 directly?

  3. #3
    Forum Contributor
    Join Date
    03-21-2012
    Location
    Ho Chi Minh city
    MS-Off Ver
    Excel 2003
    Posts
    180

    Re: Find Date Range data's and paste the next sheet blank row.

    PHP Code: 
    Option Explicit
    Sub MsgBoxDate
    ()
     
    Dim fDat As DatelDat As DateNDat As IntegerjJ As Integer
     Dim sfDat 
    As StringslDat As StringFormat_ As StringMyAdd As String
     Dim Rng 
    As RangesRng As Range
     
     sfDat 
    InputBox("ENTER FIRST DATE", , Date 9)
     
    fDat CVDate(sfDat)
     
    slDat InputBox("ENTER LAST DATE", , Date)
     
    lDat CVDate(slDat)
     
    Sheet1.Select:                 NDat lDat fDat
     Set Rng 
    Range([A2], [A2].End(xlDown))
     
    Format_ Rng.NumberFormat
     Rng
    .NumberFormat "MM/dd/yyyy"
     
    For jJ 0 To NDat
        Set sRng 
    Rng.Find(Format(fDat jJ"mm/dd/yyyy"), , xlValuesxlWhole)
        If 
    Not sRng Is Nothing Then
            MyAdd 
    sRng.Address
            
    Do
                
    With Sheet2.[A65500].End(xlUp).Offset(1)
                    .
    Resize(, 3).Value sRng.Resize(, 3).Value
                End With
                Set sRng 
    Rng.FindNext(sRng)
            
    Loop While Not sRng Is Nothing And sRng.Address <> MyAdd
        End 
    If
     
    Next jJ
     Rng
    .NumberFormat Format_
    End Sub 

  4. #4
    Registered User
    Join Date
    09-02-2013
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    87

    Re: Find Date Range data's and paste the next sheet blank row.

    Hi nimbus3000

    sheet 1 is the master sheet. i want copy data's where i given the start & end date through userform or inputbox. That Copied date range rows should be past in sheet 2.

+ 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. Find blank cell, then paste entire row onto another sheet
    By Misterturtle in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-17-2013, 05:34 PM
  2. [SOLVED] Find the date and copy the values from the colum of the date find and paste to other sheet
    By nizzcmzph in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 02-20-2013, 10:03 AM
  3. Replies: 18
    Last Post: 02-10-2013, 05:32 PM
  4. find 2nd blank row in WS2 and paste data
    By RPOD in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 09-27-2009, 02:05 PM
  5. Copy a Range from sheet and paste the next blank line in another s
    By ca1358 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 12-02-2005, 05:18 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