Copy rows to new excel book with different sheets

jvlavl

New Member
Joined
Nov 27, 2017
Messages
15
Hello,

I need to copy rows with different letters to separated sheets in a new excel file.
Example

[TABLE="width: 500"]
<tbody>[TR]
[TD]a[/TD]
[TD]45[/TD]
[TD]46[/TD]
[TD]c[/TD]
[/TR]
[TR]
[TD]r[/TD]
[TD]44[/TD]
[TD]12[/TD]
[TD]d[/TD]
[/TR]
[TR]
[TD]v[/TD]
[TD]55[/TD]
[TD]33[/TD]
[TD]e[/TD]
[/TR]
[TR]
[TD]v[/TD]
[TD]44[/TD]
[TD]22[/TD]
[TD]c[/TD]
[/TR]
[TR]
[TD]g[/TD]
[TD]22[/TD]
[TD]11[/TD]
[TD]f[/TD]
[/TR]
[TR]
[TD]f[/TD]
[TD]44[/TD]
[TD]33[/TD]
[TD]d[/TD]
[/TR]
[TR]
[TD]g[/TD]
[TD]88[/TD]
[TD]77[/TD]
[TD]e[/TD]
[/TR]
</tbody>[/TABLE]

all rows ending with c need to be placed in a new workbook on a sheet rows ending with d or any letter need to be placed on a different sheet only having that letter.

How can I do that

Rgds,

John
 

Excel Facts

Excel Joke
Why can't spreadsheets drive cars? They crash too often!
I'd say sort column D and manually copy/paste, but I'm assuming you'll need to do this more than once, right? How familiar are you with VBA?
 
Upvote 0
Besides "c" each other letter has it's own sheet, right? For example, rows with an "a" need to go to a sheet named "a"; rows with a "b" need to go to a sheet named "b". Do these sheets already exist? Is "c" the only value in column D that doesn't follow this convention?
 
Upvote 0

Forum statistics

Threads
1,223,911
Messages
6,175,325
Members
452,635
Latest member
laura12345

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