This might be a duplicate question, but I dont know the right verbage to search for what I want.
I have a table in Excel 2010, Windows7, that looks like:[TABLE="width: 500"]
<tbody>[TR]
[TD]PM3[/TD]
[TD]Time[/TD]
[TD]Meters[/TD]
[/TR]
[TR]
[TD]Mike[/TD]
[TD]0[/TD]
[TD]0[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]1<time></time>[/TD]
[TD]10<integer></integer>[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]2<time></time>[/TD]
[TD]4<integer></integer>[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]3<time></time>[/TD]
[TD]3<integer></integer>[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]4<time></time>[/TD]
[TD]2<integer></integer>[/TD]
[/TR]
[TR]
[TD]Tim[/TD]
[TD]0[/TD]
[TD]0[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]1<time></time>[/TD]
[TD]2<integer></integer>[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]3<time></time>[/TD]
[TD]5<integer></integer>[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]6<time></time>[/TD]
[TD]7<integer></integer>[/TD]
[/TR]
[TR]
[TD]Jon[/TD]
[TD]0[/TD]
[TD]0[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]1<time></time>[/TD]
[TD]2<integer></integer>[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]3<time></time>[/TD]
[TD]1<integer></integer>[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]1<time></time>[/TD]
[TD]1<integer></integer>[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]1<time></time>[/TD]
[TD]1<integer></integer>[/TD]
[/TR]
</tbody>[/TABLE]
except there will be about a thousand rows between names in column A.
What I'd like to be able to do is create a macro that takes all the cells from one person's name to the next, and places that data into its own worksheet.
The part that is tripping me up is that the number of rows for each person varies, so I cannot just grab 1000 rows at a time.
Thanks!
I have a table in Excel 2010, Windows7, that looks like:[TABLE="width: 500"]
<tbody>[TR]
[TD]PM3[/TD]
[TD]Time[/TD]
[TD]Meters[/TD]
[/TR]
[TR]
[TD]Mike[/TD]
[TD]0[/TD]
[TD]0[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]1<time></time>[/TD]
[TD]10<integer></integer>[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]2<time></time>[/TD]
[TD]4<integer></integer>[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]3<time></time>[/TD]
[TD]3<integer></integer>[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]4<time></time>[/TD]
[TD]2<integer></integer>[/TD]
[/TR]
[TR]
[TD]Tim[/TD]
[TD]0[/TD]
[TD]0[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]1<time></time>[/TD]
[TD]2<integer></integer>[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]3<time></time>[/TD]
[TD]5<integer></integer>[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]6<time></time>[/TD]
[TD]7<integer></integer>[/TD]
[/TR]
[TR]
[TD]Jon[/TD]
[TD]0[/TD]
[TD]0[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]1<time></time>[/TD]
[TD]2<integer></integer>[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]3<time></time>[/TD]
[TD]1<integer></integer>[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]1<time></time>[/TD]
[TD]1<integer></integer>[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]1<time></time>[/TD]
[TD]1<integer></integer>[/TD]
[/TR]
</tbody>[/TABLE]
except there will be about a thousand rows between names in column A.
What I'd like to be able to do is create a macro that takes all the cells from one person's name to the next, and places that data into its own worksheet.
The part that is tripping me up is that the number of rows for each person varies, so I cannot just grab 1000 rows at a time.
Thanks!