selct, copy and paste using macro

G

Guest

Guest
How can I use a macro to automaticly select certain rows, add a new sheet and copy these rows to the sheet and then name the sheet according to a cell in that row.

Example
A B C D E F G H
Rec Tag item Time Case# Dispo Descrip Loc
date 111111 1 1300 0000111 D clock G1

I am pulling this information from access. I would like to be able to delete Column "d", select all rows with the dispo code "d" (column F), add a new sheet named "d" and copy and paste these rows to that sheet. There will be many hundreds of rows with 10-12 different dispo codes. I want to be able to do this with each different code. Hopefully all at once if possible. Hope this is clear, if not I will try to explain further.

Thanks for your help.
 

Excel Facts

Do you hate GETPIVOTDATA?
Prevent GETPIVOTDATA. Select inside a PivotTable. In the Analyze tab of the ribbon, open the dropown next to Options and turn it off

Forum statistics

Threads
1,213,510
Messages
6,114,040
Members
448,543
Latest member
MartinLarkin

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