PERL: Modify Excel cell formatting


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting PERL: Modify Excel cell formatting
# 1  
Old 10-03-2008
PERL: Modify Excel cell formatting

Hi,

I would like to modify an existing excel cell format to a custom format.
Is there a way to do it with out writing into a new excel file.
In-place editing?

Thanks
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Parse excel file with html on each cell

<DIV><P>Pré-condição aceder ao ecrã Home do MRS.</P></DIV><DIV><P>OK.</P></DIV><DIV><P>Seleccionar Pesquisa de Recepção Directa.</P></DIV><DIV><P>Confirmar que abriu ecrã de Recepção Directa.</P></DIV><DIV> (6 Replies)
Discussion started by: oliveiraum
6 Replies

2. UNIX for Advanced & Expert Users

awk - If then else rule like Excel cell

Hi, I need extract / transpose where "Y" in the input file My input file is Item,EB,SB,SD,TP,GR LP,Y,N,N,N,Y GC,Y,N,N,N,N CO,N,Y,Y,Y,Y PS,Y,N,N,Y,Y Expecting output is EB-/'LP/',/'GC/',/'PS/' SB-/'CO/' SD-/'CO/' TP-/'CO/',/'PS/' GR-LP,CO,PS I appreciate for your help Regards (4 Replies)
Discussion started by: myrole
4 Replies

3. Shell Programming and Scripting

Perl script to Merge contents of 2 different excel files in a single excel file

All, I have an excel sheet Excel1.xls that has some entries. I have one more excel sheet Excel2.xls that has entries only in those cells which are blank in Excel1.xls These may be in different workbooks. They are totally independent made by 2 different users. I have placed them in a... (1 Reply)
Discussion started by: Anamika08
1 Replies

4. Shell Programming and Scripting

Writing excel file using perl : Excel file formatting changed

I am trying to create a program where user can input data in certain excel cells using user interface on internet....the programming is on perl and server is unix But when i parse data into excel the formatting of sheets is turned to default and all macro coding removed. What to do...Please... (7 Replies)
Discussion started by: mud_born
7 Replies

5. Shell Programming and Scripting

Perl - Append data to existing excel cell

Hello All, I have the following code in PERL to write data to excel sheet. Can someone please help me about how to append data to an exisitng cell? For ex in the below given case,Cell 1,1 has Active State PERL Now I want to add a new line like "prorgamming" without overwritting the... (3 Replies)
Discussion started by: prasperl
3 Replies

6. Shell Programming and Scripting

Help to modify in Excel format

Hi I ran some query in solaris machine and the result of the query is as below. Result: dn: uid=xxx,dc=example,dc=com id: xxx firstname: sam lastname: nam But my question is , how to get result in excel format in solaris and result attributes dn,id,firstname,lastname values ... (1 Reply)
Discussion started by: buzzme
1 Replies

7. Shell Programming and Scripting

modify Existing MS excel workbook in perl

Hi I need to modify an excel file in perl and for which I installed perl in Linux 1. Open a existing excel file 2. delete an unwanted Sheet called "summary" 3. and i want to insert some data into range of cells ( B1:B11) 4. Remove unwanted value called "Sum" repeated in the... (1 Reply)
Discussion started by: luke_devon
1 Replies

8. Shell Programming and Scripting

Export into a single cell of excel sheet...

The awk is giving below output: SELECT divrel.child_org_idn org_main_idn NULL ( VARCHAR(200)) div_nam_2 NULL ( VARCHAR(200)) div_nam_3 NULL ( VARCHAR(200)) div_nam_4 NULL ( VARCHAR(200)) div_nam_5 NULL ( VARCHAR(200)) div_nam_6 NULL ( VARCHAR(200)) div_nam_7 ... (2 Replies)
Discussion started by: goutam_igate
2 Replies

9. Shell Programming and Scripting

How to change cell background in excel sheet using perl

I need to change a cell in an excel sheet to different background color using perl.I tried SaveParse, but was unable to get it Please help regarding this. Thanks and Regards, Neelam G https://www.unix.com/images/misc/progress.gif (0 Replies)
Discussion started by: gujrathinr
0 Replies

10. UNIX for Dummies Questions & Answers

Change the cell background in excel sheet using Perl

I need to change a cell in an excel sheet to different background color using perl. Please help regarding this. Thanks and Regards, Neelam G (1 Reply)
Discussion started by: gujrathinr
1 Replies
Login or Register to Ask a Question
Excel::Template::Container::Format(3pm) 		User Contributed Perl Documentation		   Excel::Template::Container::Format(3pm)

NAME
Excel::Template::Container::Format - Excel::Template::Container::Format PURPOSE
To format all children according to the parameters NODE NAME
FORMAT INHERITANCE
Excel::Template::Container ATTRIBUTES
Boolean attributes should be set to 1, 0, true, or false. Color values can be the color name or the color index. See "COLOURS IN EXCEL" in Spreadsheet::WriteExcel o align Set to either left, center, right, fill, or justify. Default is left. See also valign. o bg_color Set to a color value. Default is none. o bold This will set bold to on or off, depending on the boolean value. o border Set the border for all for edges of a cell. Also see bottom, top, left, and right. Valid values are 0 - 7. See "set_border()" in Spreadsheet::WriteExcel o border_color Sets the color value for the border. See also border, top_color, bottom_color, left_color and right_color. o bottom See border. o bottom_color See border_color o color This will set the color of the text, depending on color value. Default is black. o fg_color Set to a color value. This color will be used in foreground of some patterns. See color to change the color of text. Also see bg_color and pattern. o font This will sent the font face. Default is Arial. o font_outline This will set font_outline to on or off, depending on the boolean value. (q.v. OUTLINE tag) o font_shadow This will set font_shadow to on or off, depending on the boolean value. (q.v. SHADOW tag). This only applies to Excel for Macintosh. o font_strikeout This will set font_strikeout to on or off, depending on the boolean value. (q.v. STRIKEOUT tag) o hidden This will set whether the cell is hidden to on or off, depending on the boolean value. o indent Set the indentation level for a cell. Positive integers are allowed. o italic This will set italic to on or off, depending on the boolean value. (q.v. ITALIC tag) o left See border. o left_color See border_color. o num_format Set to the index of one of Excel's built-in number formats. See "set_num_format()" in Spreadsheet::WriteExcel o pattern Set to an integer, 0 - 18. Sets the background fill pattern of a ell. Default is 1, solid. o right See border. o right_color See border color. o rotation Set the rotation of the text in a cell. The rotation can be any angle in the range -90 to 90 degrees. The angle 270 is also supported. This indicates text where the letters run from top to bottom. o shrink A boolean value. If true, text will shrink to fit a cell. o size This will set the size of the font. Default is 10. Unless a row height is specifically set, the row will grow taller as necessary. o text_justlast A boolean value to justify the last line. Only applies to Far Eastern versions of Excel. o text_wrap A boolean value. When set to true, text will wrap in a cell instead of crossing over into empty cells. If the row height is not set, the row will grow taller to accommodate the wrapping text. o top See border. o top_color See border_color o valign Set to top, vcenter, bottom, or vjustify. Default is vcenter. See also align. CHILDREN
None EFFECTS
None DEPENDENCIES
None USAGE
<format bold="1"> ... Children here </format> In the above example, the children will be displayed (if they are displaying elements) in a bold format. All other formatting will remain the same and the "bold"-ness will end at the end tag. AUTHOR
Rob Kinyon (rob.kinyon@gmail.com) SEE ALSO
BOLD, HIDDEN, ITALIC, OUTLINE, SHADOW, STRIKEOUT perl v5.14.2 2012-04-29 Excel::Template::Container::Format(3pm)