Hi All,
i want to sort selected data by row and by column respectively in excel VBA. i have more than 100 tables in my worksheet and i want to sort each tabledata by row, first, and then by column
sample of problme--
Desired output--
just want to write a procedure to sort given range first row by Row and first column by column. pls help.....
thanks
i want to sort selected data by row and by column respectively in excel VBA. i have more than 100 tables in my worksheet and i want to sort each tabledata by row, first, and then by column
sample of problme--
<TABLE dir=ltr borderColor=#05ad00 cellSpacing=1 cellPadding=2 width=448 border=1><TBODY><TR><TD width="14%" height=4>Table1
</TD></TR></TBODY></TABLE>
</TD><TD width="14%" height=4>ABC
</TD><TD width="14%" height=4>DEF
</TD><TD width="14%" height=4>GHI
</TD><TD width="14%" height=4>JKL
</TD><TD width="14%" height=4>MNO
</TD><TD width="14%" height=4>RST
</TD></TR><TR><TD width="14%" height=4>PQR
</TD><TD width="14%" height=4>1
</TD><TD width="14%" height=4>3
</TD><TD width="14%" height=4>5
</TD><TD width="14%" height=4>7
</TD><TD width="14%" height=4>9
</TD><TD width="14%" height=4>11
</TD></TR><TR><TD width="14%" height=4>STU
</TD><TD width="14%" height=4>2
</TD><TD width="14%" height=4>4
</TD><TD width="14%" height=4>6
</TD><TD width="14%" height=4>8
</TD><TD width="14%" height=4>10
</TD><TD width="14%" height=4>12
</TD></TR><TR><TD width="14%" height=4>MNO
</TD><TD width="14%" height=4>3
</TD><TD width="14%" height=4>5
</TD><TD width="14%" height=4>7
</TD><TD width="14%" height=4>9
</TD><TD width="14%" height=4>11
</TD><TD width="14%" height=4>13
</TD></TR><TR><TD width="14%" height=4>QRS
</TD><TD width="14%" height=4>4
</TD><TD width="14%" height=4>6
</TD><TD width="14%" height=4>8
</TD><TD width="14%" height=4>10
</TD><TD width="14%" height=4>12
</TD><TD width="14%" height=4>14
</TD></TR><TR><TD width="14%" height=4>GHI
</TD><TD width="14%" height=4>5
</TD><TD width="14%" height=4>7
</TD><TD width="14%" height=4>9
</TD><TD width="14%" height=4>11
</TD><TD width="14%" height=4>13
</TD><TD width="14%" height=4>15</TD></TR></TBODY></TABLE>
Desired output--
<TABLE dir=ltr borderColor=#0ead00 cellSpacing=1 cellPadding=2 width=448 border=1><TBODY><TR><TD width="14%" height=4>Table1
</TD></TR></TBODY></TABLE>
</TD><TD width="14%" height=4>ABC
</TD><TD width="14%" height=4>DEF
</TD><TD width="14%" height=4>GHI
</TD><TD width="14%" height=4>JKL
</TD><TD width="14%" height=4>MNO
</TD><TD width="14%" height=4>RST
</TD></TR><TR><TD width="14%" height=4>GHI
</TD><TD width="14%" height=4>5
</TD><TD width="14%" height=4>7
</TD><TD width="14%" height=4>9
</TD><TD width="14%" height=4>11
</TD><TD width="14%" height=4>13
</TD><TD width="14%" height=4>15
</TD></TR><TR><TD width="14%" height=4>MNO
</TD><TD width="14%" height=4>3
</TD><TD width="14%" height=4>5
</TD><TD width="14%" height=4>7
</TD><TD width="14%" height=4>9
</TD><TD width="14%" height=4>11
</TD><TD width="14%" height=4>13
</TD></TR><TR><TD width="14%" height=4>PQR
</TD><TD width="14%" height=4>1
</TD><TD width="14%" height=4>3
</TD><TD width="14%" height=4>5
</TD><TD width="14%" height=4>7
</TD><TD width="14%" height=4>9
</TD><TD width="14%" height=4>11
</TD></TR><TR><TD width="14%" height=4>QRS
</TD><TD width="14%" height=4>4
</TD><TD width="14%" height=4>6
</TD><TD width="14%" height=4>8
</TD><TD width="14%" height=4>10
</TD><TD width="14%" height=4>12
</TD><TD width="14%" height=4>14
</TD></TR><TR><TD width="14%" height=4>STU
</TD><TD width="14%" height=4>2
</TD><TD width="14%" height=4>4
</TD><TD width="14%" height=4>6
</TD><TD width="14%" height=4>8
</TD><TD width="14%" height=4>10
</TD><TD width="14%" height=4>12</TD></TR></TBODY></TABLE>
just want to write a procedure to sort given range first row by Row and first column by column. pls help.....
thanks