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

Convert text numbers to real numbers
Select a column containing text numbers. Press Alt+D E F to quickly convert text to numbers. Faster than "Convert to Number"
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

Forum statistics

Threads
1,223,227
Messages
6,170,848
Members
452,361
Latest member
d3ad3y3

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