Vba copy data from a range and paste to empty column

Closed
vonnyS Posts 4 Registration date Friday February 5, 2016 Status Member Last seen February 8, 2016 - Feb 5, 2016 at 02:50 PM
vcoolio Posts 1411 Registration date Thursday July 24, 2014 Status Moderator Last seen September 6, 2024 - Feb 10, 2016 at 02:13 AM
Hello,

I have a set of values in range P6:P15. At the end of each month, I would like to copy and paste the data from the current month column to the next empty column on the right until all 12 months are filled up. For example, at the end of Jan when I run the macro it will copy the data from cells P6:P15 to the Jan column, and at the end of Feb the data will be copied again from cell P6:P15 to the Feb column and so forth.

Is it possible to provide a macro that would do just that?

Thanks!!!

Current month YTD Jan Feb Mar Apr
100 100
300 100
400 100
500 100

3 responses

vcoolio Posts 1411 Registration date Thursday July 24, 2014 Status Moderator Last seen September 6, 2024 262
Feb 10, 2016 at 02:13 AM
Hello VonnyS,

Sorry for the late reply. I've had some problems logging in over the last couple of days.

Anyway, what RayH has said in post #6 is correct.

It may be worthwhile uploading a sample of your actual work book so that we can try and determine what is going on. You can upload a sample by using a free file sharing site such as DropBox, ge.tt or SpeedyShare. Upload to your selected site then post back here with the link to your file. Be careful with any sensitive data.

@RayH:

Thanks for looking in!

Cheerio,
vcoolio.
2