フィルターのクリア

Problem on acessing excel by activeX command in Matlab

2 ビュー (過去 30 日間)
Bibi
Bibi 2014 年 6 月 24 日
コメント済み: Bibi 2014 年 7 月 8 日
I tested code below
Excel = actxserver('Excel.Application');
set(Excel,'Visible',1);
Workbooks = Excel.Workbooks.Open('C:\Users\Bibi\Documents\MATLAB\New Microsoft Excel Worksheet.xlsx');
Excel.Worksheets.Add
Then I found I successfully added a new sheet "sheet2" before "sheet1"
Actually, one can arrange the order of the sheet by adding count and before just as below,
Worksheets.Add *Count:=2, Before:=Sheets(1)
But how to add "Count" and "Before" in matlab language, I tried many times but all failed.

採用された回答

Tejas M U
Tejas M U 2014 年 6 月 30 日
  1 件のコメント
Bibi
Bibi 2014 年 7 月 8 日
Thank you so much!!!

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

その他の回答 (0 件)

カテゴリ

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

製品

Community Treasure Hunt

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

Start Hunting!

Translated by