エクセルの手動選択セルの文字を読み込む方法
10 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
以下を実行する方法を教えて下さい(①~④の順)
①ダイアログボックスを開き、エクセルファイルを手動で選択。
②選択したエクセルファイルが自動で開く。
③開いたエクセルファイルの 1行、N列のセルを手動で選択。
④③で選択したセルに記載の文字をワークスペースに変数名:selとして格納。
0 Kommentare
Antworten (1)
Jiro Doke
am 19 Sep. 2019
このページが参考になるかもしれません。
少し工夫するとこんな感じにできます。
exl = actxserver('excel.application');
exlWkbk = exl.Workbooks;
[filename,pathname] = uigetfile('*.xls;*.xlsx','ファイルを選択してください');
exlFile = exlWkbk.Open(fullfile(pathname,filename));
exl.Visible = true;
ここで Excel ファイルのセルを選択
sel = exl.ActiveCell.Value
exl.Quit
0 Kommentare
Siehe auch
Kategorien
Mehr zu スプレッドシート finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!