Challenge: Macro to copy certain columns to another worksheet

Jaap_Amsterdam

New Member
Joined
Dec 5, 2009
Messages
3
Hello!

I need some help setting up a code that does the following:

If date A* = january then paste link B*,C*,D* to worksheet 2
If date A* = februari then paste link B*,C*,D* to worksheet 3
If date A* = march then paste link B*,C*,D* to worksheet 4

Where * is any number ranging from 1 to 500

Thank you so much for your help!!!

Thanks
Jaap
 

Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.
Hi Jaap

Welcome

You could you probably use a filter for that, Have you some space or a sheet you could hold a helper column to work the months so you can cycle through them?
 
Upvote 0
Dear Dave!

Thanks a lot, the hint was sufficient. I skipped the filter, I was thinking too complicated using macros. I now used advanced filter to solve the problem, worked like a charm!

All the best,
Jaap
 
Upvote 0

Forum statistics

Threads
1,215,614
Messages
6,125,848
Members
449,266
Latest member
davinroach

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top