MACRO - Copy rows from a sheet based on value in B

ZipLipZ

New Member
Joined
Mar 4, 2005
Messages
20
Hey all, i appreciate all the help. here is my problem.

I need macro that will go through a sheet and copy entire rows over to there proper worksheet based on the value in the B colum. For example if in B4 the text is "RES" then i need it to copy the row to the next available row in the RES sheet. But if the text is "BOB" then i need it to be sent to the BOB sheet ont he next available row.

Any help would be great.. thankyou!
 
Go with Norie's code. It was late last night and I don't think I was quite thinking straight.

Cheers Norie!
 
Upvote 0

Excel Facts

How can you turn a range sideways?
Copy the range. Select a blank cell. Right-click, Paste Special, then choose Transpose.
What would need to be changed if the value should only contain part of the word, so for his example he wants RES... so what if we wanted everything that started with R. In my case, I have a number followed by a description:

20 lname
20 fname
30 title

and i need everything that has the 20 in the cel to be on a sheet called 20.
 
Upvote 0

Forum statistics

Threads
1,215,734
Messages
6,126,542
Members
449,316
Latest member
sravya

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