Using VBA to copy a range of data from one sheet to another

GrahamButler1970

New Member
Joined
Mar 4, 2011
Messages
8
I am trying to copy data from one sheet to another sheet using autofilter.

What I currently have is 4 macros which autofilter a sheet of data.

What I need to do is do this and then copy the results to another worksheet in that workbook and then paste the results under each other. Therefore, finding the next available row and coopying the data there.

I only need to copy the data under the headers in Row 1.

The 4 macros' I have also do copy a range of data but that is specific to that test data I have and it does not select the range of visible cells that will come with later datasets.

Any help??
 

Excel Facts

Whats the difference between CONCAT and CONCATENATE?
The newer CONCAT function can reference a range of cells. =CONCATENATE(A1,A2,A3,A4,A5) becomes =CONCAT(A1:A5)
Hi,

Have you tried the "Select Visible Cells" button? (You may need to add it to your tool bar: Right click on a toolbar, click Customize, goto Edit, scroll down and drag "Select Visible Cells" to your toolbar).

You basically Highlight the filtered data, click that button, Ctrl + C and then paste it into your new sheet. The data should be in a nice order.
 
Upvote 0
Thanks for that.

I have 4 macros to run. How do I ensure that when I copy the data it finds the next available row to autopopulate.
 
Upvote 0

Forum statistics

Threads
1,215,507
Messages
6,125,212
Members
449,214
Latest member
mr_ordinaryboy

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