Some extra code snippets :)
$Sheet2->Range("B2:D2")->Merge; $Sheet2->Range("B2:D2")->Font->{Bold} = "True"; $Sheet2->Range("A4:E11")->Select; $Sheet2->Range("A4:E11")->Borders(xlEdgeLeft)->{LineStyle} = xlContin +uous; $Sheet2->Range("A4:E11")->Borders(xlEdgeTop)->{LineStyle} = xlContinu +ous; $Sheet2->Range("A4:E11")->Borders(xlEdgeRight)->{LineStyle} = xlConti +nuous; $Sheet2->Range("A4:E11")->Borders(xlEdgeBottom)->{LineStyle} = xlCont +inuous; $Sheet2->Range("A4:E11")->Borders(xlInsideVertical)-> {Weight} = xlThi +n; $Sheet2->Range("A4:E11")->Borders(xlInsideHorizontal)-> {Weight} = xlT +hin; $Sheet2 -> Range("A4:E4") -> {Columns} -> Autofit; $Sheet2 -> Range("A4:E4")->{ColumnWidth}->Autofit; #####---------COLORS TO USE IF NEEDED--- $Sheet2->Range("C7:C7")->Interior->{ColorIndex} = 4; $Sheet2->Range("C8:C8")->Interior->{ColorIndex}= 37; $Sheet2->Range("C9:C9")->Interior->{ColorIndex} =3;
Raghu

In reply to Re: How to set bold /underline to perticular cell in excel? by imrags
in thread How to set bold /underline to perticular cell in excel? by anbutechie

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.