A Macro to move rows from one tab to another

nerojr

New Member
Joined
May 18, 2009
Messages
31
Hello everyone,

I working with a 4,000 line excel sheet. I need to move certain rows to new tabs and then delete the original rows. I recorded a macro that will create and rename 5 new tabs and then move certain rows to the corresponding tab. The macro moves one set of rows and that is all. Is there a different way to move rows to different tabs?
 

Excel Facts

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.
If you give us more information(Details) we might be able to help!!
What certain rows?

lenze
 
Upvote 0
I receive a daily worksheet that is around 4,000 lines. I worksheet comes in column headings that I can sort. One of the headings is description and I sort in descending order. I then need to create new tabs for certains descriptions. Right now we copy and paste certain descriptions into the corresponding tab. I need a faster way to accomplish this task. Right now it takes around 45 mins to complete.

Thanks
 
Upvote 0
Are you using AutoFilter?? I would think you could do this in a matter of minutes. If you give us more detail we can write a code to do that for you!!
What are the Descriptions?
Are the sheets named the same as the descriptions??
Do you replace previous data on the destination sheet or add to it??

lenze
 
Upvote 0
I do use autofilter to pull out the descriptions I need to move. For example, I filter the description list for anything listed as Incomplete. I then copy this info to the tab I renamed Incomplete. I also do this for the description for Future Term Changes. As for the other tabs, we have descriptions that apply to certain tabs that don't share a name with the tab. An example of this is Raterr Coll - B02 would be moved to the Vin tab. Right now I'm just copying the rows that pertain and pasting them into the appropriate tab. Once the rows are paseted, I then delete the original rows.
 
Upvote 0

Forum statistics

Threads
1,214,430
Messages
6,119,453
Members
448,898
Latest member
drewmorgan128

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