Without automating Excel, which you shouldn't really do using server side code (and may run into permissions issues anyway), a way to achieve this is to use the similar code above but output valid HTML and save with the .xls extension.
This will let you bold certain columns + apply general HTML styling.
e.g look at examples here
http://forums.asp.net/t/1214938.aspx[
^]
For example, create a new text file on your computer. Paste the following HTML into it & save the file. Then change the file extension to .xls & open it in Excel. Notice we've got bold headers + a 'red' style.
<HTML>
<HEAD>
<style type='text/css'>
table
{
cellpadding: 0px;
font-size: xx-small;
border-collapse:collapse;
}
td.some-style
{
border: 1px solid black;
color: red;
}
</style>
</HEAD>
<BODY>
<TABLE border=0>
<TR>
<Td></Td>
<Td></Td>
<Td></Td>
<Td class="some-style">This is an example</Td>
<Td></Td>
</TR>
<thead>
<TR>
<Th> ProductID</Th>
<Th> Product Name</Th>
<Th> Sales Person</Th>
<Th> Date Closed</Th>
<Th> Sale Amount</Th>
</TR>
</thead>
<TR>
<TD>1</TD>
<TD>Code Project</TD>
<TD>Dylan Morley</TD>
<TD>10/03/2010</TD>
<TD>50.00</TD>
</TR>
<TR>
<TD>2</TD>
<TD>Microsoft</TD>
<TD>Dylan Morley</TD>
<TD>10/03/2010</TD>
<TD>50.00</TD>
</TR>
</TABLE>
</BODY>
</HTML>
You could create this HTML quite easily in your export routine
NB: This would only be a valid solution for machines with Excel 2003 or greater installed, which I think is when then first introduced HTML capabilities?