how to read a excel file by taking user input in dialog box

1 回表示 (過去 30 日間)
Ravikant Singh
Ravikant Singh 2014 年 3 月 7 日
回答済み: Image Analyst 2014 年 3 月 8 日
program
prompt='enter file name'; dlg_title='file name'; num_lines=1; a=input(prompt,dlg_title,num_lines);
prompt='enter sheet name'; dlg_title='Sheet name'; num_lines=1; b=input(prompt,dlg_title,num_lines);
[data,header]=xlsread(a,b);
i am getting an error "Filename must be string"
  6 件のコメント
Chandrasekhar
Chandrasekhar 2014 年 3 月 7 日
you can take it as an input , Also you can use activex server commands to display all the sheets existing in that xls
Ravikant Singh
Ravikant Singh 2014 年 3 月 8 日
how??

サインインしてコメントする。

回答 (1 件)

Image Analyst
Image Analyst 2014 年 3 月 8 日
If you want to know how to control Excel with ActiveX, see my attached demo. You can do a lot more than is in my demo, such as getting all the sheet names, etc.

カテゴリ

Help Center および File ExchangeActiveX についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by