+ Reply to Thread
Results 1 to 10 of 10

Date find and copy function.

  1. #1
    Forum Contributor
    Join Date
    05-05-2004
    MS-Off Ver
    Office 365
    Posts
    651

    Date find and copy function.

    I have a list of trades that I keep track of. The file just keeps getting longer and longer. At the end of the day I would like to click a macro that looks at Sheet1 and checks to see if the date (in column B) is today’s date. If it is copy that line to Sheet2 and continue to check until the end of the list of trades on Sheet1.

    I can do a macro that uses sort but that’s not really efficient. Any help you can give as always is very much appreciated.

  2. #2
    Tom Ogilvy
    Guest

    RE: Date find and copy function.

    You can do this with the Advanced filter with the copy to option with no code
    or if you want to do it with code, you can use teh advanced filter in code.

    --
    Regards,
    Tom Ogilvy


    "sungen99" wrote:

    >
    > I have a list of trades that I keep track of. The file just keeps
    > getting longer and longer. At the end of the day I would like to click
    > a macro that looks at Sheet1 and checks to see if the date (in column B)
    > is today’s date. If it is copy that line to Sheet2 and continue to
    > check until the end of the list of trades on Sheet1.
    >
    > I can do a macro that uses sort but that’s not really efficient. Any
    > help you can give as always is very much appreciated.
    >
    >
    > --
    > sungen99
    > ------------------------------------------------------------------------
    > sungen99's Profile: http://www.excelforum.com/member.php...fo&userid=9144
    > View this thread: http://www.excelforum.com/showthread...hreadid=544324
    >
    >


  3. #3
    Don Guillett
    Guest

    Re: Date find and copy function.

    Are you saying that the trade dates will be mixed up

    5/1
    5/2
    5/1
    5/3
    5/1

    Don Guillett
    SalesAid Software
    [email protected]
    "sungen99" <[email protected]> wrote in
    message news:[email protected]...
    >
    > I have a list of trades that I keep track of. The file just keeps
    > getting longer and longer. At the end of the day I would like to click
    > a macro that looks at Sheet1 and checks to see if the date (in column B)
    > is today’s date. If it is copy that line to Sheet2 and continue to
    > check until the end of the list of trades on Sheet1.
    >
    > I can do a macro that uses sort but that’s not really efficient. Any
    > help you can give as always is very much appreciated.
    >
    >
    > --
    > sungen99
    > ------------------------------------------------------------------------
    > sungen99's Profile:
    > http://www.excelforum.com/member.php...fo&userid=9144
    > View this thread: http://www.excelforum.com/showthread...hreadid=544324
    >




  4. #4
    Forum Contributor
    Join Date
    05-05-2004
    MS-Off Ver
    Office 365
    Posts
    651
    No actually the trades will not be mixed up. They will be bunched.

  5. #5
    Forum Contributor
    Join Date
    05-05-2004
    MS-Off Ver
    Office 365
    Posts
    651
    Tom how would you do that? i have never used that feature before.

  6. #6
    Tom Ogilvy
    Guest

    Re: Date find and copy function.

    http://www.contextures.com/tiptech.html
    Debra Dalgleish's site
    Read about the Advanced Filter.

    --
    Regards,
    Tom Ogilvy

    "sungen99" <[email protected]> wrote in
    message news:[email protected]...
    >
    > Tom how would you do that? i have never used that feature before.
    >
    >
    > --
    > sungen99
    > ------------------------------------------------------------------------
    > sungen99's Profile:

    http://www.excelforum.com/member.php...fo&userid=9144
    > View this thread: http://www.excelforum.com/showthread...hreadid=544324
    >




  7. #7
    Forum Contributor
    Join Date
    05-05-2004
    MS-Off Ver
    Office 365
    Posts
    651
    It would seem that the advance filter does not work for my application as I am getting an error saying that merged cells are not able to be looked up.

    Does anyone have the code for doing this with a macro. To answer the question from Don- no the dates will increase and will not be mixed up.

    Thanks so much for all your help in this.

  8. #8
    Don Guillett
    Guest

    Re: Date find and copy function.

    get rid of the merged cells

    --
    Don Guillett
    SalesAid Software
    [email protected]
    "sungen99" <[email protected]> wrote in
    message news:[email protected]...
    >
    > It would seem that the advance filter does not work for my application
    > as I am getting an error saying that merged cells are not able to be
    > looked up.
    >
    > Does anyone have the code for doing this with a macro. To answer the
    > question from Don- no the dates will increase and will not be mixed
    > up.
    >
    > Thanks so much for all your help in this.
    >
    >
    > --
    > sungen99
    > ------------------------------------------------------------------------
    > sungen99's Profile:
    > http://www.excelforum.com/member.php...fo&userid=9144
    > View this thread: http://www.excelforum.com/showthread...hreadid=544324
    >




  9. #9
    Forum Contributor
    Join Date
    05-05-2004
    MS-Off Ver
    Office 365
    Posts
    651
    That would be the best thing to do but with over 5000 lines. The merging of the data would be a mess. I unfortunately need to do this with a macro. I am actually getting desperate for the solution so if someone is interested and has paypal.....

  10. #10
    Don Guillett
    Guest

    Re: Date find and copy function.

    Send me the file along with complete instructions and reference to this
    discussion and I will take a look

    --
    Don Guillett
    SalesAid Software
    [email protected]
    "sungen99" <[email protected]> wrote in
    message news:[email protected]...
    >
    > That would be the best thing to do but with over 5000 lines. The merging
    > of the data would be a mess. I unfortunately need to do this with a
    > macro. I am actually getting desperate for the solution so if someone
    > is interested and has paypal.....
    >
    >
    > --
    > sungen99
    > ------------------------------------------------------------------------
    > sungen99's Profile:
    > http://www.excelforum.com/member.php...fo&userid=9144
    > View this thread: http://www.excelforum.com/showthread...hreadid=544324
    >




+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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