Code covered by the BSD License  

Highlights from
msopen

4.0

4.0 | 5 ratings Rate this file 12 Downloads (last 30 days) File Size: 2.36 KB File ID: #4562

msopen

by

 

02 Mar 2004 (Updated )

Opens Microsoft Office files (Word, Excel, Power Point, Project, & Access).

| Watch this File

File Information
Description

msopen(file)
 
msopen : Opens Microsoft Office files (Word, Excel, Power Point, Project, & Access).
 
file: Name of file with extension (ex. 'Doc1.doc')
 
Examples:
 
msopen myfile.doc;
msopen myfile.xls;
msopen myfile.ppt myfile.xls myfile.doc;
msopen *.xls *.doc;

MATLAB release MATLAB 7.3 (R2006b)
Other requirements Microsoft Office (Word, Excel, Power Point, Project, Access)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (7)
13 Oct 2009 Kimberly

Is this command similar to officedoc and winopen.m?

02 Sep 2008 David Hayden

dos('filename') is easier, except if you have spaces in your filename.

07 Aug 2008 Thierry Dalon

Indeed winopen seems to do the same.
msopen has following extended features:
- can open several files in a row
- allows wildcard in filespec
- allows partial path
which make it anyway very useful.

I would have following improvements (that's why only a 4 rating):
- it would be nice if you could take as input a list (cellstr) of files and not only the command window syntax.
- there is a small bug if no file was found. (you should check if output of wildfiles==0 to exit properly)

I am using this file because I want to be able to open also txt files with Excel. I've modified the file
switch fext
case {'.xls','.xla','.xlt','.txt'}
so it handles this.
This can winopen definitely not do as well!

20 Sep 2007 Dany Simard

Thanks, good to do the simple task of opening those files

09 Aug 2005 Daniel Febres

i have a problem with this file. i used to open a xls file that must run the "MATLAB EXCEL LINK" macro, and this .m dont do that. it say me a error "the link is broken".

01 Oct 2004 Matthew Simoneau

See also winopen.m, built into MATLAB.

07 Mar 2004 Ibrahim ONARAN

Open an ms application is not that challenging. It is more important how to manage it by using matlab. Do you know some source that explain the functions and their parameters of this applications.

Updates
08 Mar 2004

Multiple file option added

09 Mar 2004

Fixed file path bug

01 Apr 2004

Fixed another path bug

13 Apr 2004

Now can open Project & Access

05 May 2004

Changed Category

26 May 2004

Now supports wildcard

27 May 2004

Fixed a bug caused by (wildfiles) function

02 Jul 2009

Now Supporting Microsoft Office 2007 extensions

Contact us