Copy and Paste certain columns based on dates

Solved/Closed
jones835 - Sep 2, 2011 at 06:08 AM
 jones835 - Sep 13, 2011 at 09:51 AM
Hello,

I am trying to create a macro that will look at a list of dates in column B then copy and paste the data in column C and D to another sheet in one place, then look to the next date in column B and copy and paste the data into the other sheet in another place. Can anyone please help?

Thanks

3 responses

TrowaD Posts 2921 Registration date Sunday September 12, 2010 Status Moderator Last seen December 27, 2022 552
Sep 8, 2011 at 09:04 AM
Hi Jones,

Your question is pretty vague.

quote: "look at a list of dates in column B".
What dates are we looking for?

quote: "paste the data in column C and D to another sheet in one place".
Which place?

quote: "into the other sheet in another place".
You mean same destination sheet?
By another place you mean the next row?

Maybe it's best if you upload your file using a filesharing site like speedyshare.com and post back the link.
Explain in detail what you want to achieve.

Best regards,
Trowa
0
Hi Trowa

Sorry for being so vague.

Here is a link to the file

http://www.speedyshare.com/files/30230162/test.xls

Basically what I want to do, is copy the information in columns C and D in sheet 1 and paste them into sheet 2 under the correct date.

Let me know if that doesn't make sense.

Thanks
0
TrowaD Posts 2921 Registration date Sunday September 12, 2010 Status Moderator Last seen December 27, 2022 552
Sep 12, 2011 at 09:39 AM
Hi Jones,

It's clear to me what you want and am working on the code.

Best regards,
Trowa
0
TrowaD Posts 2921 Registration date Sunday September 12, 2010 Status Moderator Last seen December 27, 2022 552
Sep 13, 2011 at 08:55 AM
Hi Jones,

Since we need to compare the dates from sheet1 and sheet2 they need to be in the same format (at least it's easier to handle). Therefore I used row 4 of sheet2 to input the date. Then I changed the text color to white so you don't see it.

Here is your file:
https://authentification.site/files/30298761/Jones_test.xls

I hope you like the result.

Best regards,
Trowa
0
That's great! Thanks so much for your help.
0