4.2

4.2 | 5 ratings Rate this file 262 downloads (last 30 days) File Size: 7.71 KB File ID: #6889

Spreadsheet

by Michael Robbins

 

09 Feb 2005 (Updated 16 May 2005)

No BSD License  

Demonstrates Microsoft Office Spreadsheet ActiveX Object.

Download Now | Watch this File

File Information
Description

SPREADSHEET is an example of how to use the Microsoft Office Spreadsheet Object.

This example, in response to the CSSM thread "ActiveX (Microsoft Office Spreadsheet)," demonstrates how to use the MS Office Spreadsheet object to display cell, character, logical and numeric matricies. It also demonstrates how to use an enumerated class workaround and how to
get the active cell, sheet, row and column from the spreadsheet. Various other methods and properties are explored and demonstrated. Much has been lifted from ML examples.

The Microsoft Office Spreadsheet object allows inputs and calcuations.

NOTE: TO SEE AN EXAMPLE OF HOW TO USE GRID OBJECTS WHICH HAVE SOME ADVANTAGES OVER THE MICROSOFT SPREADSHEET OBJECT,SEE MY EXAMPLE CALLED "GRAPH_AND_TABLE" WHICH IS AVAILABLE ON THE MATHWORKS FILE EXCHANGE:
          

http://www.mathworks.com/matlabcentral/fileexchange/loadFile.do?objectId=3477&objectType=file

NOTE: If you cannot instantiate the control, try changing 'OWC11.Spreadsheet.11' to 'OWC10.Spreadsheet.10' or even 'OWC9.Spreadsheet.9'

See Also: Grid_and_Table at the MATLAB File Exchange
          http://www.mathworks.com/matlabcentral/fileexchange

Keywords: grid spreadsheet ActiveX Active-X Active X GUI Table graph_and_table plot graph table grid object flexgrid msflexgrid ocx tabular

Thanks: TMW, Max Chtangeev, useActiveXControl, Brett Shoelson

IT'S NOT FANCY, BUT IT WORKS

MATLAB release MATLAB 7 (R14)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (6)
20 Oct 2005 Rafe Austin

Good demonstration of properties. However, is there a way to fill the table without a nested loop? I.e. can I assign a Matlab vector to a column without looping through it?

09 Nov 2005 Michael Robbins

Yes, use FastFillGrid to fill it without loops:

http://www.mathworks.com/matlabcentral/fileexchange/loadAuthor.do?objectId=828141&objectType=author

21 Aug 2007 parthiban p

extremely useful... keep posting stuffs like this so tht novice like me will find it really useful.

how to access the datas inputed by the user in the spread sheet in my mfile. is there direct methods to access by giving the corresponding cell name??

20 Sep 2007 Vladimir Chernatkin

How can I make another sheet tab active ('Sheet 2' instead of 'Sheet 1' for example)?

31 Jan 2008 BODET Vincent  
27 Oct 2009 aa

Just great!

Please login to add a comment or rating.
Updates
16 May 2005

List of many properties, methods and events added. Also references to new m-files that demonstrate the Microsoft Office Spreadsheet Object 11.

Tag Activity for this File
Tag Applied By Date/Time
gui tools Michael Robbins 22 Oct 2008 07:40:59
example Michael Robbins 22 Oct 2008 07:40:59
grid Michael Robbins 22 Oct 2008 07:40:59
spreadsheet Michael Robbins 22 Oct 2008 07:40:59
activex Michael Robbins 22 Oct 2008 07:40:59
active x Michael Robbins 22 Oct 2008 07:40:59
graph_and_table Michael Robbins 22 Oct 2008 07:40:59
gui table Michael Robbins 22 Oct 2008 07:40:59
active x Essam Naji 24 Sep 2009 05:35:55
grid Essam Naji 24 Sep 2009 05:39:20
example Essam Naji 24 Sep 2009 05:39:24
activex Essam Naji 24 Sep 2009 05:39:26
 

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