5.0

5.0 | 4 ratings Rate this file 122 downloads (last 30 days) File Size: 8.64 KB File ID: #4981

xlsfont, xlsalign, xlsborder, xlswordart, xlscomment

by Fahad Al Mahmood

 

22 May 2004 (Updated 09 Jun 2004)

Code covered by BSD License  

5 functions to modify Microsoft Excel cell format & adds comments and WordArt

Download Now | Watch this File

File Information
Description

Look at functions help for more details and descriptions. Also included (PDF) file showing Excel Color Index to be used for specifying colors in those functions.

Examples:

xlsfont('file.xls','Sheet1','whole','font','Courier New');
xlsfont('file.xls','Sheet1','2:2','interior',1,11,4);
xlsfont('file.xls','Sheet1','A1','underline',3);

xlsalign('file.xls','Sheet1','A1:A2','MergeCells',1);
xlsalign('file.xls','Sheet1','A1:A2','Horizontal',3,'WrapText',1);
xlsalign('file.xls','Sheet1','A1:A2','Orientation',90,'ShrinkToFit',1);

xlsborder('file.xls','Sheet1','A1:A2','Box',1,2,1);
xlsborder('file.xls','Sheet1','A1:B2','Cross',6,4,5);
xlsborder('file.xls','Sheet1','A1:A2','EdgeTop',1,2,1,'EdgeBottom',4,3,3);

xlswordart('file.xls','Sheet1',7,'My Profile!',30,'Impact',1,1,50,50);

xlscomment('file.xls','Sheet1','B4','This is my Comment!',1)

Acknowledgements
This submission has inspired the following:
xls2html 1.0 R1
MATLAB release MATLAB 6.5 (R13)
Other requirements Microsoft Excel
Zip File Content  
Other Files xlsborder.m,
xlscomment.m,
xlsfont.m,
xlswordart.m,
xlsalign.m
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (4)
18 Aug 2007 g l

Not sure why nobody commented. But these are exactly what I am looking for!

25 Nov 2007 J W

Very useful, I have been looking for this for long time....

10 Apr 2009 Aviator

This is great absolutely handy and well-written. This was what I was looking for for a long time.... Thanks. Keep up the good work.

22 Apr 2009 Sahin Aktas  
Please login to add a comment or rating.
Updates
09 Jun 2004

Added (xlscomment) & (xlswordart)

Tag Activity for this File
Tag Applied By Date/Time
data import Fahad Al Mahmood 22 Oct 2008 07:20:31
data export Fahad Al Mahmood 22 Oct 2008 07:20:31
excel Fahad Al Mahmood 22 Oct 2008 07:20:31
activex Fahad Al Mahmood 22 Oct 2008 07:20:31
spreadsheet Fahad Al Mahmood 22 Oct 2008 07:20:31
xls Fahad Al Mahmood 22 Oct 2008 07:20:31
cell Fahad Al Mahmood 22 Oct 2008 07:20:31
font Fahad Al Mahmood 22 Oct 2008 07:20:31
align Fahad Al Mahmood 22 Oct 2008 07:20:31
border Fahad Al Mahmood 22 Oct 2008 07:20:31
 

MATLAB Central Terms of Use

NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Terms prior to use.

Contact us at files@mathworks.com