need code to pull row onto new sheet

patty123467

New Member
Joined
Jul 24, 2015
Messages
44
How do I say:

If column T has a 0, move that rows column J-S onto sheet2 on en empty row.

Thanks!
 

Excel Facts

What do {} around a formula in the formula bar mean?
{Formula} means the formula was entered using Ctrl+Shift+Enter signifying an old-style array formula.
How is column T changing, via formula or manual entry?

One quick way is to use AutoFilter on column T, then Goto-->Special-->Visible Cells only, then copy/paste. That's all easily recordable, and if you post back what you get someone can set it up to copy to a blank row.
 
Upvote 0
I am doing a v-lookup to get the 0 into the T field (would love for this to be automatic too). Then I want to be able to run a macro that will take all of the rows with a 0 and copy and paste cells J-S into the other sheet on a blank row. Just columns J-S.
 
Upvote 0
What do you do with the 0 rows once they've been copied? If they get deleted no problem, but if not then how do you prevent duplicates in the destination sheet?

Did you try the AutoFilter method I mentioned?
 
Upvote 0

Forum statistics

Threads
1,215,377
Messages
6,124,598
Members
449,174
Latest member
chandan4057

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