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 did Pito Salas invent?
Pito Salas, working for Lotus, popularized what would become to be pivot tables. It was released as Lotus Improv in 1989.
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,066
Messages
6,122,948
Members
449,095
Latest member
nmaske

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