Hi all, I have a worksheet that looks something like this:
[TABLE="width: 500"]
<tbody>[TR]
[TD]Person#[/TD]
[TD]Stuff #[/TD]
[TD]Data[/TD]
[/TR]
[TR]
[TD]Person1[/TD]
[TD]1[/TD]
[TD]Person1 stuff 1[/TD]
[/TR]
[TR]
[TD]Person1[/TD]
[TD]2[/TD]
[TD]Person1 stuff 2 [/TD]
[/TR]
[TR]
[TD]Person2[/TD]
[TD]2[/TD]
[TD]Person2 stuff 2[/TD]
[/TR]
[TR]
[TD]Person2[/TD]
[TD]4[/TD]
[TD]Person2 stuff 4 [/TD]
[/TR]
[TR]
[TD]Person2[/TD]
[TD]3[/TD]
[TD]Person2 stuff 3 [/TD]
[/TR]
[TR]
[TD]Person2[/TD]
[TD]1[/TD]
[TD]Person2 stuff 1 [/TD]
[/TR]
[TR]
[TD]Person3[/TD]
[TD]2[/TD]
[TD]Person3 stuff 2 [/TD]
[/TR]
[TR]
[TD]Person3[/TD]
[TD]1[/TD]
[TD]Person3 stuff 1[/TD]
[/TR]
</tbody>[/TABLE]
For some reason Excel won't sort first by Col A (Person #) then by Col B (Stuff #) so it will look like this:
[TABLE="width: 500"]
<tbody>[TR]
[TD]Person#[/TD]
[TD]Stuff #[/TD]
[TD]Data[/TD]
[/TR]
[TR]
[TD]Person1[/TD]
[TD]1[/TD]
[TD]Person1 stuff 1[/TD]
[/TR]
[TR]
[TD]Person1[/TD]
[TD]2[/TD]
[TD]Person1 stuff 2[/TD]
[/TR]
[TR]
[TD]Person2[/TD]
[TD]1[/TD]
[TD]Person2 stuff 1[/TD]
[/TR]
[TR]
[TD]Person2[/TD]
[TD]2[/TD]
[TD]Person2 stuff 2 [/TD]
[/TR]
[TR]
[TD]Person2[/TD]
[TD]3[/TD]
[TD]Person2 stuff 3 [/TD]
[/TR]
[TR]
[TD]Person2[/TD]
[TD]4[/TD]
[TD]Person2 stuff 4[/TD]
[/TR]
[TR]
[TD]Person3[/TD]
[TD]1[/TD]
[TD]Person3 stuff 1[/TD]
[/TR]
[TR]
[TD]Person3[/TD]
[TD]2[/TD]
[TD]Person3 stuff 2[/TD]
[/TR]
</tbody>[/TABLE]
Is there someway to do this in VBA? Thanks in advance.
[TABLE="width: 500"]
<tbody>[TR]
[TD]Person#[/TD]
[TD]Stuff #[/TD]
[TD]Data[/TD]
[/TR]
[TR]
[TD]Person1[/TD]
[TD]1[/TD]
[TD]Person1 stuff 1[/TD]
[/TR]
[TR]
[TD]Person1[/TD]
[TD]2[/TD]
[TD]Person1 stuff 2 [/TD]
[/TR]
[TR]
[TD]Person2[/TD]
[TD]2[/TD]
[TD]Person2 stuff 2[/TD]
[/TR]
[TR]
[TD]Person2[/TD]
[TD]4[/TD]
[TD]Person2 stuff 4 [/TD]
[/TR]
[TR]
[TD]Person2[/TD]
[TD]3[/TD]
[TD]Person2 stuff 3 [/TD]
[/TR]
[TR]
[TD]Person2[/TD]
[TD]1[/TD]
[TD]Person2 stuff 1 [/TD]
[/TR]
[TR]
[TD]Person3[/TD]
[TD]2[/TD]
[TD]Person3 stuff 2 [/TD]
[/TR]
[TR]
[TD]Person3[/TD]
[TD]1[/TD]
[TD]Person3 stuff 1[/TD]
[/TR]
</tbody>[/TABLE]
For some reason Excel won't sort first by Col A (Person #) then by Col B (Stuff #) so it will look like this:
[TABLE="width: 500"]
<tbody>[TR]
[TD]Person#[/TD]
[TD]Stuff #[/TD]
[TD]Data[/TD]
[/TR]
[TR]
[TD]Person1[/TD]
[TD]1[/TD]
[TD]Person1 stuff 1[/TD]
[/TR]
[TR]
[TD]Person1[/TD]
[TD]2[/TD]
[TD]Person1 stuff 2[/TD]
[/TR]
[TR]
[TD]Person2[/TD]
[TD]1[/TD]
[TD]Person2 stuff 1[/TD]
[/TR]
[TR]
[TD]Person2[/TD]
[TD]2[/TD]
[TD]Person2 stuff 2 [/TD]
[/TR]
[TR]
[TD]Person2[/TD]
[TD]3[/TD]
[TD]Person2 stuff 3 [/TD]
[/TR]
[TR]
[TD]Person2[/TD]
[TD]4[/TD]
[TD]Person2 stuff 4[/TD]
[/TR]
[TR]
[TD]Person3[/TD]
[TD]1[/TD]
[TD]Person3 stuff 1[/TD]
[/TR]
[TR]
[TD]Person3[/TD]
[TD]2[/TD]
[TD]Person3 stuff 2[/TD]
[/TR]
</tbody>[/TABLE]
Is there someway to do this in VBA? Thanks in advance.