selct, copy and paste using macro

  • Thread starter Thread starter Guest
  • Start date Start date
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

How to show all formulas in Excel?
Press Ctrl+` to show all formulas. Press it again to toggle back to numbers. The grave accent is often under the tilde on US keyboards.

Forum statistics

Threads
1,223,339
Messages
6,171,533
Members
452,409
Latest member
brychu

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