H
hiren.hp
Hi,
I am trying to have excel open an HTML file that contains nested
table, the outer table contains fields that can be used to perform the
sort. But this is not working, Excel instead converts "Line 1" and
"Zipcode 1" into merged cells as well as "Line 2" and "Zipcode 2" (see
below). If I open this HTML in browser and use Javascript function
to sort the table it works fine.
Sample HTML that has issues:
---------------------------
<HTML>
<Table>
<TR>
<TD>Line 1 </TD>
<TD>Zipcode 1</TD>
<TD><table>
<tr bgcolor=yellow> <td> House 1</td><td>phone #</td></
tr>
<tr bgcolor=green> <td> House 2</td><td>phone #</td></
tr>
</table></TD>
</TR>
<TR>
<TD>Line 2 </TD>
<TD>Zipcode 2</TD>
<TD><table>
<tr bgcolor=green> <td> House 5</td><td>phone #</td></
tr>
<tr bgcolor=yellow> <td> House 6</td><td>phone #</td></
tr>
<tr bgcolor=red> <td> House 7</td><td>phone #</td></tr>
</table></TD>
</TR>
</HTML>
----------------------
Basically I want to create a list that I can use to sort on first
column (Line item) or second column (Zipcode). I would prefer not to
convert the inner table into <PRE> as this works, but the results look
awful.
Thanks in advance,
Hiren
I am trying to have excel open an HTML file that contains nested
table, the outer table contains fields that can be used to perform the
sort. But this is not working, Excel instead converts "Line 1" and
"Zipcode 1" into merged cells as well as "Line 2" and "Zipcode 2" (see
below). If I open this HTML in browser and use Javascript function
to sort the table it works fine.
Sample HTML that has issues:
---------------------------
<HTML>
<Table>
<TR>
<TD>Line 1 </TD>
<TD>Zipcode 1</TD>
<TD><table>
<tr bgcolor=yellow> <td> House 1</td><td>phone #</td></
tr>
<tr bgcolor=green> <td> House 2</td><td>phone #</td></
tr>
</table></TD>
</TR>
<TR>
<TD>Line 2 </TD>
<TD>Zipcode 2</TD>
<TD><table>
<tr bgcolor=green> <td> House 5</td><td>phone #</td></
tr>
<tr bgcolor=yellow> <td> House 6</td><td>phone #</td></
tr>
<tr bgcolor=red> <td> House 7</td><td>phone #</td></tr>
</table></TD>
</TR>
</HTML>
----------------------
Basically I want to create a list that I can use to sort on first
column (Line item) or second column (Zipcode). I would prefer not to
convert the inner table into <PRE> as this works, but the results look
awful.
Thanks in advance,
Hiren