Formatting cells Help in VBA

zaska

Well-known Member
Joined
Oct 24, 2010
Messages
1,046
Hi,

<table border="0" cellpadding="0" cellspacing="0" width="646"><colgroup><col style="mso-width-source:userset;mso-width-alt:10093;width:207pt" width="276"> <col style="mso-width-source:userset;mso-width-alt:3364;width:69pt" width="92"> <col style="mso-width-source:userset;mso-width-alt:6838;width:140pt" width="187"> <col style="mso-width-source:userset;mso-width-alt:3328;width:68pt" width="91"> </colgroup><tbody><tr style="height:12.75pt" height="17"> <td class="xl76" style="height:12.75pt;width:207pt; font-size:10.0pt;color:white;font-weight:700;text-decoration:none;text-underline-style: none;text-line-through:none;font-family:Arial;border-top:.5pt solid #95B3D7; border-right:none;border-bottom:.5pt solid windowtext;border-left:.5pt solid #95B3D7; background:#4F81BD;mso-pattern:#4F81BD none" height="17" width="276">Trading & Profit & Loss Account for the Year Ended 31-03-2008</td> <td class="xl76" style="width:69pt;font-size:10.0pt;color:white; font-weight:700;text-decoration:none;text-underline-style:none;text-line-through: none;font-family:Arial;border-top:.5pt solid #95B3D7;border-right:none; border-bottom:.5pt solid windowtext;border-left:none;background:#4F81BD; mso-pattern:#4F81BD none" width="92">Column1</td> <td class="xl76" style="width:140pt;font-size:10.0pt;color:white; font-weight:700;text-decoration:none;text-underline-style:none;text-line-through: none;font-family:Arial;border-top:.5pt solid #95B3D7;border-right:none; border-bottom:.5pt solid windowtext;border-left:none;background:#4F81BD; mso-pattern:#4F81BD none" width="187">Column2</td> <td class="xl76" style="width:68pt;font-size:10.0pt;color:white; font-weight:700;text-decoration:none;text-underline-style:none;text-line-through: none;font-family:Arial;border-top:.5pt solid #95B3D7;border-right:.5pt solid #95B3D7; border-bottom:.5pt solid windowtext;border-left:none;background:#4F81BD; mso-pattern:#4F81BD none" width="91">Column3</td> </tr> <tr style="height:12.75pt" height="17"> <td class="xl64" style="height:12.75pt;border-top:none;font-size: 10.0pt;color:black;font-weight:700;text-decoration:none;text-underline-style: none;text-line-through:none;font-family:Arial;border:.5pt solid windowtext; background:#DCE6F1;mso-pattern:#DCE6F1 none" height="17">Expenditure</td> <td class="xl65" style="border-top:none;font-size:10.0pt;color:black; font-weight:700;text-decoration:none;text-underline-style:none;text-line-through: none;font-family:Arial;border-top:.5pt solid windowtext;border-right:.5pt solid windowtext; border-bottom:.5pt solid windowtext;border-left:none;background:#DCE6F1; mso-pattern:#DCE6F1 none">Amount</td> <td class="xl65" style="border-top:none;font-size:10.0pt;color:black; font-weight:700;text-decoration:none;text-underline-style:none;text-line-through: none;font-family:Arial;border-top:.5pt solid windowtext;border-right:.5pt solid windowtext; border-bottom:.5pt solid windowtext;border-left:none;background:#DCE6F1; mso-pattern:#DCE6F1 none">Income</td> <td class="xl65" style="border-top:none;font-size:10.0pt;color:black; font-weight:700;text-decoration:none;text-underline-style:none;text-line-through: none;font-family:Arial;border-top:.5pt solid windowtext;border-right:.5pt solid windowtext; border-bottom:.5pt solid windowtext;border-left:none;background:#DCE6F1; mso-pattern:#DCE6F1 none">Amount</td> </tr> <tr style="height:12.75pt" height="17"> <td class="xl66" style="height:12.75pt;font-size:10.0pt;color:black; font-weight:400;text-decoration:none;text-underline-style:none;text-line-through: none;font-family:"Times New Roman";border-top:.5pt solid #95B3D7;border-right: .5pt solid windowtext;border-bottom:.5pt solid #95B3D7;border-left:.5pt solid windowtext" height="17">Opening Stock</td> <td class="xl67" style="font-size:10.0pt;color:black;font-weight: 400;text-decoration:none;text-underline-style:none;text-line-through:none; font-family:"Times New Roman";border-top:.5pt solid #95B3D7;border-right: .5pt solid windowtext;border-bottom:.5pt solid #95B3D7;border-left:none" align="right">100.00</td> <td class="xl68" style="font-size:10.0pt;color:black;font-weight:700; text-decoration:none;text-underline-style:none;text-line-through:none; font-family:"Times New Roman";border-top:.5pt solid #95B3D7;border-right: .5pt solid windowtext;border-bottom:.5pt solid #95B3D7;border-left:none">Direct Incomes</td> <td class="xl67" style="font-size:10.0pt;color:black;font-weight:400; text-decoration:none;text-underline-style:none;text-line-through:none; font-family:"Times New Roman";border-top:.5pt solid #95B3D7;border-right: .5pt solid windowtext;border-bottom:.5pt solid #95B3D7;border-left:none">
</td> </tr> <tr style="height:12.75pt" height="17"> <td class="xl69" style="height:12.75pt;font-size:10.0pt;color:black; font-weight:700;text-decoration:none;text-underline-style:none;text-line-through: none;font-family:"Times New Roman";border-top:.5pt solid #95B3D7;border-right: .5pt solid windowtext;border-bottom:.5pt solid #95B3D7;border-left:.5pt solid windowtext; background:#DCE6F1;mso-pattern:#DCE6F1 none" height="17">Direct Expenses</td> <td class="xl67" style="font-size:10.0pt;color:black;font-weight:400; text-decoration:none;text-underline-style:none;text-line-through:none; font-family:"Times New Roman";border-top:.5pt solid #95B3D7;border-right: .5pt solid windowtext;border-bottom:.5pt solid #95B3D7;border-left:none; background:#DCE6F1;mso-pattern:#DCE6F1 none">
</td> <td class="xl70" style="font-size:10.0pt;color:black;font-weight:400; text-decoration:none;text-underline-style:none;text-line-through:none; font-family:"Times New Roman";border-top:.5pt solid #95B3D7;border-right: .5pt solid windowtext;border-bottom:.5pt solid #95B3D7;border-left:none; background:#DCE6F1;mso-pattern:#DCE6F1 none">Development Expenses Received</td> <td class="xl67" style="font-size:10.0pt;color:black;font-weight: 400;text-decoration:none;text-underline-style:none;text-line-through:none; font-family:"Times New Roman";border-top:.5pt solid #95B3D7;border-right: .5pt solid windowtext;border-bottom:.5pt solid #95B3D7;border-left:none; background:#DCE6F1;mso-pattern:#DCE6F1 none" align="right">100.00</td> </tr> <tr style="height:12.75pt" height="17"> <td class="xl66" style="height:12.75pt;font-size:10.0pt;color:black; font-weight:400;text-decoration:none;text-underline-style:none;text-line-through: none;font-family:"Times New Roman";border-top:.5pt solid #95B3D7;border-right: .5pt solid windowtext;border-bottom:.5pt solid #95B3D7;border-left:.5pt solid windowtext" height="17">Land Cost</td> <td class="xl67" style="font-size:10.0pt;color:black;font-weight: 400;text-decoration:none;text-underline-style:none;text-line-through:none; font-family:"Times New Roman";border-top:.5pt solid #95B3D7;border-right: .5pt solid windowtext;border-bottom:.5pt solid #95B3D7;border-left:none" align="right">200.00</td> <td class="xl70" style="font-size:10.0pt;color:black;font-weight:400; text-decoration:none;text-underline-style:none;text-line-through:none; font-family:"Times New Roman";border-top:.5pt solid #95B3D7;border-right: .5pt solid windowtext;border-bottom:.5pt solid #95B3D7;border-left:none">
</td> <td class="xl67" style="font-size:10.0pt;color:black;font-weight:400; text-decoration:none;text-underline-style:none;text-line-through:none; font-family:"Times New Roman";border-top:.5pt solid #95B3D7;border-right: .5pt solid windowtext;border-bottom:.5pt solid #95B3D7;border-left:none">
</td> </tr> <tr style="height:12.75pt" height="17"> <td class="xl66" style="height:12.75pt;font-size:10.0pt;color:black; font-weight:400;text-decoration:none;text-underline-style:none;text-line-through: none;font-family:"Times New Roman";border-top:.5pt solid #95B3D7;border-right: .5pt solid windowtext;border-bottom:.5pt solid #95B3D7;border-left:.5pt solid windowtext; background:#DCE6F1;mso-pattern:#DCE6F1 none" height="17">Layout Expenses</td> <td class="xl67" style="font-size:10.0pt;color:black;font-weight: 400;text-decoration:none;text-underline-style:none;text-line-through:none; font-family:"Times New Roman";border-top:.5pt solid #95B3D7;border-right: .5pt solid windowtext;border-bottom:.5pt solid #95B3D7;border-left:none; background:#DCE6F1;mso-pattern:#DCE6F1 none" align="right">300.00</td> <td class="xl71" style="font-size:10.0pt;color:black;font-weight:400; text-decoration:none;text-underline-style:none;text-line-through:none; font-family:"Times New Roman";border-top:.5pt solid #95B3D7;border-right: .5pt solid windowtext;border-bottom:.5pt solid #95B3D7;border-left:none; background:#DCE6F1;mso-pattern:#DCE6F1 none">
</td> <td class="xl67" style="font-size:10.0pt;color:black;font-weight:400; text-decoration:none;text-underline-style:none;text-line-through:none; font-family:"Times New Roman";border-top:.5pt solid #95B3D7;border-right: .5pt solid windowtext;border-bottom:.5pt solid #95B3D7;border-left:none; background:#DCE6F1;mso-pattern:#DCE6F1 none">
</td> </tr> <tr style="height:12.75pt" height="17"> <td class="xl72" style="height:12.75pt;font-size:10.0pt;color:black; font-weight:400;text-decoration:none;text-underline-style:none;text-line-through: none;font-family:"Times New Roman";border-top:.5pt solid #95B3D7;border-right: .5pt solid windowtext;border-bottom:.5pt solid #95B3D7;border-left:.5pt solid windowtext" height="17">
</td> <td class="xl67" style="font-size:10.0pt;color:black;font-weight:400; text-decoration:none;text-underline-style:none;text-line-through:none; font-family:"Times New Roman";border-top:.5pt solid #95B3D7;border-right: .5pt solid windowtext;border-bottom:.5pt solid #95B3D7;border-left:none">
</td> <td class="xl71" style="font-size:10.0pt;color:black;font-weight:400; text-decoration:none;text-underline-style:none;text-line-through:none; font-family:"Times New Roman";border-top:.5pt solid #95B3D7;border-right: .5pt solid windowtext;border-bottom:.5pt solid #95B3D7;border-left:none">closing stock</td> <td class="xl67" style="font-size:10.0pt;color:black;font-weight: 400;text-decoration:none;text-underline-style:none;text-line-through:none; font-family:"Times New Roman";border-top:.5pt solid #95B3D7;border-right: .5pt solid windowtext;border-bottom:.5pt solid #95B3D7;border-left:none" align="right">400.00</td> </tr> <tr style="height:12.75pt" height="17"> <td class="xl72" style="height:12.75pt;font-size:10.0pt;color:black; font-weight:400;text-decoration:none;text-underline-style:none;text-line-through: none;font-family:"Times New Roman";border-top:.5pt solid #95B3D7;border-right: .5pt solid windowtext;border-bottom:.5pt solid #95B3D7;border-left:.5pt solid windowtext; background:#DCE6F1;mso-pattern:#DCE6F1 none" height="17">Gross Profit</td> <td class="xl67" style="font-size:10.0pt;color:black;font-weight: 400;text-decoration:none;text-underline-style:none;text-line-through:none; font-family:"Times New Roman";border-top:.5pt solid #95B3D7;border-right: .5pt solid windowtext;border-bottom:.5pt solid #95B3D7;border-left:none; background:#DCE6F1;mso-pattern:#DCE6F1 none" align="right">400.00</td> <td class="xl71" style="font-size:10.0pt;color:black;font-weight:400; text-decoration:none;text-underline-style:none;text-line-through:none; font-family:"Times New Roman";border-top:.5pt solid #95B3D7;border-right: .5pt solid windowtext;border-bottom:.5pt solid #95B3D7;border-left:none; background:#DCE6F1;mso-pattern:#DCE6F1 none">
</td> <td class="xl67" style="font-size:10.0pt;color:black;font-weight:400; text-decoration:none;text-underline-style:none;text-line-through:none; font-family:"Times New Roman";border-top:.5pt solid #95B3D7;border-right: .5pt solid windowtext;border-bottom:.5pt solid #95B3D7;border-left:none; background:#DCE6F1;mso-pattern:#DCE6F1 none">
</td> </tr> <tr style="height:13.5pt" height="18"> <td class="xl72" style="height:13.5pt;font-size:10.0pt;color:black; font-weight:400;text-decoration:none;text-underline-style:none;text-line-through: none;font-family:"Times New Roman";border-top:.5pt solid #95B3D7;border-right: .5pt solid windowtext;border-bottom:.5pt solid #95B3D7;border-left:.5pt solid windowtext" height="18">
</td> <td class="xl73" style="border-left:none;font-size:10.0pt; color:black;font-weight:400;text-decoration:none;text-underline-style:none; text-line-through:none;font-family:"Times New Roman";border-top:.5pt solid windowtext; border-right:.5pt solid windowtext;border-bottom:2.0pt double windowtext; border-left:.5pt solid windowtext" align="right">900.00</td> <td class="xl71" style="font-size:10.0pt;color:black;font-weight:400; text-decoration:none;text-underline-style:none;text-line-through:none; font-family:"Times New Roman";border-top:.5pt solid #95B3D7;border-right: .5pt solid windowtext;border-bottom:.5pt solid #95B3D7;border-left:none">
</td> <td class="xl73" style="border-left:none;font-size:10.0pt; color:black;font-weight:400;text-decoration:none;text-underline-style:none; text-line-through:none;font-family:"Times New Roman";border-top:.5pt solid windowtext; border-right:.5pt solid windowtext;border-bottom:2.0pt double windowtext; border-left:.5pt solid windowtext" align="right">500.00</td> </tr> <tr style="height:13.5pt" height="18"> <td class="xl72" style="height:13.5pt;font-size:10.0pt;color:black; font-weight:400;text-decoration:none;text-underline-style:none;text-line-through: none;font-family:"Times New Roman";border-top:.5pt solid #95B3D7;border-right: .5pt solid windowtext;border-bottom:.5pt solid #95B3D7;border-left:.5pt solid windowtext; background:#DCE6F1;mso-pattern:#DCE6F1 none" height="18">
</td> <td class="xl67" style="font-size:10.0pt;color:black;font-weight:400; text-decoration:none;text-underline-style:none;text-line-through:none; font-family:"Times New Roman";border-top:.5pt solid #95B3D7;border-right: .5pt solid windowtext;border-bottom:.5pt solid #95B3D7;border-left:none; background:#DCE6F1;mso-pattern:#DCE6F1 none">
</td> <td class="xl71" style="font-size:10.0pt;color:black;font-weight:400; text-decoration:none;text-underline-style:none;text-line-through:none; font-family:"Times New Roman";border-top:.5pt solid #95B3D7;border-right: .5pt solid windowtext;border-bottom:.5pt solid #95B3D7;border-left:none; background:#DCE6F1;mso-pattern:#DCE6F1 none">Gross Profit</td> <td class="xl67" style="font-size:10.0pt;color:black;font-weight: 400;text-decoration:none;text-underline-style:none;text-line-through:none; font-family:"Times New Roman";border-top:.5pt solid #95B3D7;border-right: .5pt solid windowtext;border-bottom:.5pt solid #95B3D7;border-left:none; background:#DCE6F1;mso-pattern:#DCE6F1 none" align="right">500.00</td> </tr> <tr style="height:12.75pt" height="17"> <td class="xl69" style="height:12.75pt;font-size:10.0pt;color:black; font-weight:700;text-decoration:none;text-underline-style:none;text-line-through: none;font-family:"Times New Roman";border-top:.5pt solid #95B3D7;border-right: .5pt solid windowtext;border-bottom:.5pt solid #95B3D7;border-left:.5pt solid windowtext" height="17">Indirect Expenses</td> <td class="xl67" style="font-size:10.0pt;color:black;font-weight:400; text-decoration:none;text-underline-style:none;text-line-through:none; font-family:"Times New Roman";border-top:.5pt solid #95B3D7;border-right: .5pt solid windowtext;border-bottom:.5pt solid #95B3D7;border-left:none">
</td> <td class="xl68" style="font-size:10.0pt;color:black;font-weight:700; text-decoration:none;text-underline-style:none;text-line-through:none; font-family:"Times New Roman";border-top:.5pt solid #95B3D7;border-right: .5pt solid windowtext;border-bottom:.5pt solid #95B3D7;border-left:none">Indirect Incomes</td> <td class="xl67" style="font-size:10.0pt;color:black;font-weight:400; text-decoration:none;text-underline-style:none;text-line-through:none; font-family:"Times New Roman";border-top:.5pt solid #95B3D7;border-right: .5pt solid windowtext;border-bottom:.5pt solid #95B3D7;border-left:none">
</td> </tr> <tr style="height:12.75pt" height="17"> <td class="xl66" style="height:12.75pt;font-size:10.0pt;color:black; font-weight:400;text-decoration:none;text-underline-style:none;text-line-through: none;font-family:"Times New Roman";border-top:.5pt solid #95B3D7;border-right: .5pt solid windowtext;border-bottom:.5pt solid #95B3D7;border-left:.5pt solid windowtext; background:#DCE6F1;mso-pattern:#DCE6F1 none" height="17">Bank Charges</td> <td class="xl67" style="font-size:10.0pt;color:black;font-weight: 400;text-decoration:none;text-underline-style:none;text-line-through:none; font-family:"Times New Roman";border-top:.5pt solid #95B3D7;border-right: .5pt solid windowtext;border-bottom:.5pt solid #95B3D7;border-left:none; background:#DCE6F1;mso-pattern:#DCE6F1 none" align="right">100.00</td> <td class="xl70" style="font-size:10.0pt;color:black;font-weight:400; text-decoration:none;text-underline-style:none;text-line-through:none; font-family:"Times New Roman";border-top:.5pt solid #95B3D7;border-right: .5pt solid windowtext;border-bottom:.5pt solid #95B3D7;border-left:none; background:#DCE6F1;mso-pattern:#DCE6F1 none">Agricultural Income</td> <td class="xl67" style="font-size:10.0pt;color:black;font-weight: 400;text-decoration:none;text-underline-style:none;text-line-through:none; font-family:"Times New Roman";border-top:.5pt solid #95B3D7;border-right: .5pt solid windowtext;border-bottom:.5pt solid #95B3D7;border-left:none; background:#DCE6F1;mso-pattern:#DCE6F1 none" align="right">600.00</td> </tr> <tr style="height:12.75pt" height="17"> <td class="xl66" style="height:12.75pt;font-size:10.0pt;color:black; font-weight:400;text-decoration:none;text-underline-style:none;text-line-through: none;font-family:"Times New Roman";border-top:.5pt solid #95B3D7;border-right: .5pt solid windowtext;border-bottom:.5pt solid #95B3D7;border-left:.5pt solid windowtext" height="17">Car Insurance</td> <td class="xl67" style="font-size:10.0pt;color:black;font-weight: 400;text-decoration:none;text-underline-style:none;text-line-through:none; font-family:"Times New Roman";border-top:.5pt solid #95B3D7;border-right: .5pt solid windowtext;border-bottom:.5pt solid #95B3D7;border-left:none" align="right">200.00</td> <td class="xl70" style="font-size:10.0pt;color:black;font-weight:400; text-decoration:none;text-underline-style:none;text-line-through:none; font-family:"Times New Roman";border-top:.5pt solid #95B3D7;border-right: .5pt solid windowtext;border-bottom:.5pt solid #95B3D7;border-left:none">Commission</td> <td class="xl67" style="font-size:10.0pt;color:black;font-weight: 400;text-decoration:none;text-underline-style:none;text-line-through:none; font-family:"Times New Roman";border-top:.5pt solid #95B3D7;border-right: .5pt solid windowtext;border-bottom:.5pt solid #95B3D7;border-left:none" align="right">400.00</td> </tr> <tr style="height:12.75pt" height="17"> <td class="xl66" style="height:12.75pt;font-size:10.0pt;color:black; font-weight:400;text-decoration:none;text-underline-style:none;text-line-through: none;font-family:"Times New Roman";border-top:.5pt solid #95B3D7;border-right: .5pt solid windowtext;border-bottom:.5pt solid #95B3D7;border-left:.5pt solid windowtext; background:#DCE6F1;mso-pattern:#DCE6F1 none" height="17">Electrical Charges</td> <td class="xl67" style="font-size:10.0pt;color:black;font-weight: 400;text-decoration:none;text-underline-style:none;text-line-through:none; font-family:"Times New Roman";border-top:.5pt solid #95B3D7;border-right: .5pt solid windowtext;border-bottom:.5pt solid #95B3D7;border-left:none; background:#DCE6F1;mso-pattern:#DCE6F1 none" align="right">300.00</td> <td class="xl70" style="font-size:10.0pt;color:black;font-weight:400; text-decoration:none;text-underline-style:none;text-line-through:none; font-family:"Times New Roman";border-top:.5pt solid #95B3D7;border-right: .5pt solid windowtext;border-bottom:.5pt solid #95B3D7;border-left:none; background:#DCE6F1;mso-pattern:#DCE6F1 none">Dividend From Shares</td> <td class="xl67" style="font-size:10.0pt;color:black;font-weight: 400;text-decoration:none;text-underline-style:none;text-line-through:none; font-family:"Times New Roman";border-top:.5pt solid #95B3D7;border-right: .5pt solid windowtext;border-bottom:.5pt solid #95B3D7;border-left:none; background:#DCE6F1;mso-pattern:#DCE6F1 none" align="right">700.00</td> </tr> <tr style="height:12.75pt" height="17"> <td class="xl66" style="height:12.75pt;font-size:10.0pt;color:black; font-weight:400;text-decoration:none;text-underline-style:none;text-line-through: none;font-family:"Times New Roman";border-top:.5pt solid #95B3D7;border-right: .5pt solid windowtext;border-bottom:.5pt solid #95B3D7;border-left:.5pt solid windowtext" height="17">Genaral Expenses</td> <td class="xl67" style="font-size:10.0pt;color:black;font-weight: 400;text-decoration:none;text-underline-style:none;text-line-through:none; font-family:"Times New Roman";border-top:.5pt solid #95B3D7;border-right: .5pt solid windowtext;border-bottom:.5pt solid #95B3D7;border-left:none" align="right">400.00</td> <td class="xl70" style="font-size:10.0pt;color:black;font-weight:400; text-decoration:none;text-underline-style:none;text-line-through:none; font-family:"Times New Roman";border-top:.5pt solid #95B3D7;border-right: .5pt solid windowtext;border-bottom:.5pt solid #95B3D7;border-left:none">
</td> <td class="xl67" style="font-size:10.0pt;color:black;font-weight: 400;text-decoration:none;text-underline-style:none;text-line-through:none; font-family:"Times New Roman";border-top:.5pt solid #95B3D7;border-right: .5pt solid windowtext;border-bottom:.5pt solid #95B3D7;border-left:none" align="right">500.00</td> </tr> <tr style="height:12.75pt" height="17"> <td class="xl66" style="height:12.75pt;font-size:10.0pt;color:black; font-weight:400;text-decoration:none;text-underline-style:none;text-line-through: none;font-family:"Times New Roman";border-top:.5pt solid #95B3D7;border-right: .5pt solid windowtext;border-bottom:.5pt solid #95B3D7;border-left:.5pt solid windowtext; background:#DCE6F1;mso-pattern:#DCE6F1 none" height="17">Interest on Car Loan</td> <td class="xl67" style="font-size:10.0pt;color:black;font-weight: 400;text-decoration:none;text-underline-style:none;text-line-through:none; font-family:"Times New Roman";border-top:.5pt solid #95B3D7;border-right: .5pt solid windowtext;border-bottom:.5pt solid #95B3D7;border-left:none; background:#DCE6F1;mso-pattern:#DCE6F1 none" align="right">500.00</td> <td class="xl71" style="font-size:10.0pt;color:black;font-weight:400; text-decoration:none;text-underline-style:none;text-line-through:none; font-family:"Times New Roman";border-top:.5pt solid #95B3D7;border-right: .5pt solid windowtext;border-bottom:.5pt solid #95B3D7;border-left:none; background:#DCE6F1;mso-pattern:#DCE6F1 none">
</td> <td class="xl67" style="font-size:10.0pt;color:black;font-weight:400; text-decoration:none;text-underline-style:none;text-line-through:none; font-family:"Times New Roman";border-top:.5pt solid #95B3D7;border-right: .5pt solid windowtext;border-bottom:.5pt solid #95B3D7;border-left:none; background:#DCE6F1;mso-pattern:#DCE6F1 none">
</td> </tr> <tr style="height:12.75pt" height="17"> <td class="xl66" style="height:12.75pt;font-size:10.0pt;color:black; font-weight:400;text-decoration:none;text-underline-style:none;text-line-through: none;font-family:"Times New Roman";border-top:.5pt solid #95B3D7;border-right: .5pt solid windowtext;border-bottom:.5pt solid #95B3D7;border-left:.5pt solid windowtext" height="17">Repairs & Maintenance</td> <td class="xl67" style="font-size:10.0pt;color:black;font-weight: 400;text-decoration:none;text-underline-style:none;text-line-through:none; font-family:"Times New Roman";border-top:.5pt solid #95B3D7;border-right: .5pt solid windowtext;border-bottom:.5pt solid #95B3D7;border-left:none" align="right">600.00</td> <td class="xl71" style="font-size:10.0pt;color:black;font-weight:400; text-decoration:none;text-underline-style:none;text-line-through:none; font-family:"Times New Roman";border-top:.5pt solid #95B3D7;border-right: .5pt solid windowtext;border-bottom:.5pt solid #95B3D7;border-left:none">
</td> <td class="xl67" style="font-size:10.0pt;color:black;font-weight:400; text-decoration:none;text-underline-style:none;text-line-through:none; font-family:"Times New Roman";border-top:.5pt solid #95B3D7;border-right: .5pt solid windowtext;border-bottom:.5pt solid #95B3D7;border-left:none">
</td> </tr> <tr style="height:12.75pt" height="17"> <td class="xl66" style="height:12.75pt;font-size:10.0pt;color:black; font-weight:400;text-decoration:none;text-underline-style:none;text-line-through: none;font-family:"Times New Roman";border-top:.5pt solid #95B3D7;border-right: .5pt solid windowtext;border-bottom:.5pt solid #95B3D7;border-left:.5pt solid windowtext; background:#DCE6F1;mso-pattern:#DCE6F1 none" height="17">Salares Paid</td> <td class="xl67" style="font-size:10.0pt;color:black;font-weight: 400;text-decoration:none;text-underline-style:none;text-line-through:none; font-family:"Times New Roman";border-top:.5pt solid #95B3D7;border-right: .5pt solid windowtext;border-bottom:.5pt solid #95B3D7;border-left:none; background:#DCE6F1;mso-pattern:#DCE6F1 none" align="right">700.00</td> <td class="xl71" style="font-size:10.0pt;color:black;font-weight:400; text-decoration:none;text-underline-style:none;text-line-through:none; font-family:"Times New Roman";border-top:.5pt solid #95B3D7;border-right: .5pt solid windowtext;border-bottom:.5pt solid #95B3D7;border-left:none; background:#DCE6F1;mso-pattern:#DCE6F1 none">
</td> <td class="xl67" style="font-size:10.0pt;color:black;font-weight:400; text-decoration:none;text-underline-style:none;text-line-through:none; font-family:"Times New Roman";border-top:.5pt solid #95B3D7;border-right: .5pt solid windowtext;border-bottom:.5pt solid #95B3D7;border-left:none; background:#DCE6F1;mso-pattern:#DCE6F1 none">
</td> </tr> <tr style="height:12.75pt" height="17"> <td class="xl66" style="height:12.75pt;font-size:10.0pt;color:black; font-weight:400;text-decoration:none;text-underline-style:none;text-line-through: none;font-family:"Times New Roman";border-top:.5pt solid #95B3D7;border-right: .5pt solid windowtext;border-bottom:.5pt solid #95B3D7;border-left:.5pt solid windowtext" height="17">Telephone Charges</td> <td class="xl67" style="font-size:10.0pt;color:black;font-weight: 400;text-decoration:none;text-underline-style:none;text-line-through:none; font-family:"Times New Roman";border-top:.5pt solid #95B3D7;border-right: .5pt solid windowtext;border-bottom:.5pt solid #95B3D7;border-left:none" align="right">800.00</td> <td class="xl71" style="font-size:10.0pt;color:black;font-weight:400; text-decoration:none;text-underline-style:none;text-line-through:none; font-family:"Times New Roman";border-top:.5pt solid #95B3D7;border-right: .5pt solid windowtext;border-bottom:.5pt solid #95B3D7;border-left:none">
</td> <td class="xl67" style="font-size:10.0pt;color:black;font-weight:400; text-decoration:none;text-underline-style:none;text-line-through:none; font-family:"Times New Roman";border-top:.5pt solid #95B3D7;border-right: .5pt solid windowtext;border-bottom:.5pt solid #95B3D7;border-left:none">
</td> </tr> <tr style="height:12.75pt" height="17"> <td class="xl66" style="height:12.75pt;font-size:10.0pt;color:black; font-weight:400;text-decoration:none;text-underline-style:none;text-line-through: none;font-family:"Times New Roman";border-top:.5pt solid #95B3D7;border-right: .5pt solid windowtext;border-bottom:.5pt solid #95B3D7;border-left:.5pt solid windowtext; background:#DCE6F1;mso-pattern:#DCE6F1 none" height="17">
</td> <td class="xl67" style="font-size:10.0pt;color:black;font-weight:400; text-decoration:none;text-underline-style:none;text-line-through:none; font-family:"Times New Roman";border-top:.5pt solid #95B3D7;border-right: .5pt solid windowtext;border-bottom:.5pt solid #95B3D7;border-left:none; background:#DCE6F1;mso-pattern:#DCE6F1 none">
</td> <td class="xl71" style="font-size:10.0pt;color:black;font-weight:400; text-decoration:none;text-underline-style:none;text-line-through:none; font-family:"Times New Roman";border-top:.5pt solid #95B3D7;border-right: .5pt solid windowtext;border-bottom:.5pt solid #95B3D7;border-left:none; background:#DCE6F1;mso-pattern:#DCE6F1 none">
</td> <td class="xl67" style="font-size:10.0pt;color:black;font-weight:400; text-decoration:none;text-underline-style:none;text-line-through:none; font-family:"Times New Roman";border-top:.5pt solid #95B3D7;border-right: .5pt solid windowtext;border-bottom:.5pt solid #95B3D7;border-left:none; background:#DCE6F1;mso-pattern:#DCE6F1 none">
</td> </tr> <tr style="height:12.75pt" height="17"> <td class="xl72" style="height:12.75pt;font-size:10.0pt;color:black; font-weight:400;text-decoration:none;text-underline-style:none;text-line-through: none;font-family:"Times New Roman";border-top:.5pt solid #95B3D7;border-right: .5pt solid windowtext;border-bottom:.5pt solid #95B3D7;border-left:.5pt solid windowtext" height="17">
</td> <td class="xl67" style="font-size:10.0pt;color:black;font-weight:400; text-decoration:none;text-underline-style:none;text-line-through:none; font-family:"Times New Roman";border-top:.5pt solid #95B3D7;border-right: .5pt solid windowtext;border-bottom:.5pt solid #95B3D7;border-left:none">
</td> <td class="xl71" style="font-size:10.0pt;color:black;font-weight:400; text-decoration:none;text-underline-style:none;text-line-through:none; font-family:"Times New Roman";border-top:.5pt solid #95B3D7;border-right: .5pt solid windowtext;border-bottom:.5pt solid #95B3D7;border-left:none">
</td> <td class="xl67" style="font-size:10.0pt;color:black;font-weight:400; text-decoration:none;text-underline-style:none;text-line-through:none; font-family:"Times New Roman";border-top:.5pt solid #95B3D7;border-right: .5pt solid windowtext;border-bottom:.5pt solid #95B3D7;border-left:none">
</td> </tr> <tr style="height:12.75pt" height="17"> <td class="xl72" style="height:12.75pt;font-size:10.0pt;color:black; font-weight:400;text-decoration:none;text-underline-style:none;text-line-through: none;font-family:"Times New Roman";border-top:.5pt solid #95B3D7;border-right: .5pt solid windowtext;border-bottom:.5pt solid #95B3D7;border-left:.5pt solid windowtext; background:#DCE6F1;mso-pattern:#DCE6F1 none" height="17">Net Profit</td> <td class="xl67" style="font-size:10.0pt;color:black;font-weight: 400;text-decoration:none;text-underline-style:none;text-line-through:none; font-family:"Times New Roman";border-top:.5pt solid #95B3D7;border-right: .5pt solid windowtext;border-bottom:.5pt solid #95B3D7;border-left:none; background:#DCE6F1;mso-pattern:#DCE6F1 none" align="right">-900.00</td> <td class="xl71" style="font-size:10.0pt;color:black;font-weight:400; text-decoration:none;text-underline-style:none;text-line-through:none; font-family:"Times New Roman";border-top:.5pt solid #95B3D7;border-right: .5pt solid windowtext;border-bottom:.5pt solid #95B3D7;border-left:none; background:#DCE6F1;mso-pattern:#DCE6F1 none">
</td> <td class="xl67" style="font-size:10.0pt;color:black;font-weight:400; text-decoration:none;text-underline-style:none;text-line-through:none; font-family:"Times New Roman";border-top:.5pt solid #95B3D7;border-right: .5pt solid windowtext;border-bottom:.5pt solid #95B3D7;border-left:none; background:#DCE6F1;mso-pattern:#DCE6F1 none">
</td> </tr> <tr style="height:13.5pt" height="18"> <td class="xl74" style="height:13.5pt;font-size:10.0pt;color:black; font-weight:400;text-decoration:none;text-underline-style:none;text-line-through: none;font-family:"Times New Roman";border-top:.5pt solid #95B3D7;border-right: .5pt solid windowtext;border-bottom:.5pt solid windowtext;border-left:.5pt solid windowtext" height="18">
</td> <td class="xl73" style="border-left:none;font-size:10.0pt; color:black;font-weight:400;text-decoration:none;text-underline-style:none; text-line-through:none;font-family:"Times New Roman";border-top:.5pt solid windowtext; border-right:.5pt solid windowtext;border-bottom:2.0pt double windowtext; border-left:.5pt solid windowtext" align="right">2,700.00</td> <td class="xl75" style="font-size:10.0pt;color:black;font-weight:400; text-decoration:none;text-underline-style:none;text-line-through:none; font-family:"Times New Roman";border-top:.5pt solid #95B3D7;border-right: .5pt solid windowtext;border-bottom:.5pt solid windowtext;border-left:none">
</td> <td class="xl73" style="border-left:none;font-size:10.0pt; color:black;font-weight:400;text-decoration:none;text-underline-style:none; text-line-through:none;font-family:"Times New Roman";border-top:.5pt solid windowtext; border-right:.5pt solid windowtext;border-bottom:2.0pt double windowtext; border-left:.5pt solid windowtext" align="right">2,700.00</td> </tr> </tbody></table>
I would like to format as shown in the sample data

1. Format Headings in Bold..I.e

a. Trading & P&l a/c for the year.....
b. Expenditure / Amount , Income / Amount
c. Direct Expenses / Indirect Expenses etc in bold
d. Borders for the cells

Can anyone assist me in getting the same through VBA

thank u
 

Excel Facts

Pivot Table Drill Down
Double-click any number in a pivot table to create a new report showing all detail rows that make up that number
Hi,

How to identify the Heading in the selected range and format it to Bold Letters.

In the above sample data the headers are " Trading & P&L a/c" & " Expense" , "Incomes " "Amounts"

Thank you
 
Upvote 0

Forum statistics

Threads
1,224,514
Messages
6,179,220
Members
452,895
Latest member
BILLING GUY

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top