Excel.Workbook wBook = app.Workbooks.Open (filePath );
Excel.Worksheet wSheet = wBook.Worksheets[index];
这个办法要预先知道表的索引index, 但是我需要根据表的名称例如"home", "book", "friend"等设置工作表.
怎么解决这个问题? 或者说怎么根据表名获得该表的索引?
Excel.Worksheet wSheet = wBook.Worksheets[index];
这个办法要预先知道表的索引index, 但是我需要根据表的名称例如"home", "book", "friend"等设置工作表.
怎么解决这个问题? 或者说怎么根据表名获得该表的索引?
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货