I really appreciate your help. I figured it out. I did not use the cell by cell method. The data in a column can be handled the same. The most helpful thing was the write_string function. Instead of dumping the data into excel and formating all the data generally...I used the below method. It works great. Sometimes I just need a nug or idea...Again Thanks!!!

this works...I set the formats by column...

############################### # # insert Data into spreadsheet # ############################### my $row = 1; my $col = 0; while ( my ( $TOTAL, $type, $calendar_date, $location, $rto_store, $change, $remodel_date, $LYTD_START_DATE) = $query->fetchrow_ +array() ) { $row++; $col=0; $worksheet->write_string( $row, $col++, $TOTAL,$text_format ); $worksheet->write_string( $row, $col++, $type,$text_format ); $worksheet->write_date_time( $row, $col++, $calendar_date, $date +_format ); $worksheet->write_string( $row, $col++, $location,$text_format ) +; $worksheet->write_string( $row, $col++, $rto_store,$store_format +); $worksheet->write_string( $row, $col++, $change,$text_format ); $worksheet->write_date_time( $row, $col++, $remodel_date, $date_ +format ); $worksheet->write_date_time( $row, $col++, $LYTD_START_DATE, $da +te_format ); $row++;

In reply to Re^2: Formatting Excel blocks from query load by cocl04
in thread Formatting Excel blocks from query load by cocl04

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.