I have a macro that moves cells in one order to another order. As these cells move is there any way to have the cells right next to each of them move along with them.
For example: My macro puts column 1 in numerical order....can I link column 2 to column 1 so that column 2 follows the new order of column 1?
[TABLE="class: grid, width: 500, align: left"]
<TBODY>[TR]
[TD]Column 1[/TD]
[TD]Column 2[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]cat[/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD]dog[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]horse[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]pig[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]elephant [/TD]
[/TR]
</TBODY>[/TABLE]
For example: My macro puts column 1 in numerical order....can I link column 2 to column 1 so that column 2 follows the new order of column 1?
[TABLE="class: grid, width: 500, align: left"]
<TBODY>[TR]
[TD]Column 1[/TD]
[TD]Column 2[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]cat[/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD]dog[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]horse[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]pig[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]elephant [/TD]
[/TR]
</TBODY>[/TABLE]