以文本方式查看主题 - Foxtable(狐表) (http://foxtable.com/bbs/index.asp) -- 专家坐堂 (http://foxtable.com/bbs/list.asp?boardid=2) ---- 读取了excel后,请问! (http://foxtable.com/bbs/dispbbs.asp?boardid=2&id=61353) |
-- 作者:heying325 -- 发布时间:2014/12/11 10:15:00 -- 读取了excel后,请问! 读取了excel后,我知道sheet(0) 表示第一个工作表,以此类推。。。 但现在我知道工作表的名称,比如 “考勤表” 这是excel中第二个工作表,我怎么通过 这个名称 去读取第二个工作表啊? 又不能sheet(“考勤表”)
|
-- 作者:Bin -- 发布时间:2014/12/11 10:16:00 -- 遍历 SHEET 判断 .Name |
-- 作者:heying325 -- 发布时间:2014/12/11 10:24:00 -- 帮助中没找到遍历sheet的例子,不知道怎么写! |
-- 作者:有点甜 -- 发布时间:2014/12/11 10:26:00 -- For Eahc s As Object in book.Sheets Msgbox(s.Name) Next |
-- 作者:有点甜 -- 发布时间:2014/12/11 10:27:00 -- 谁说不能用名字读取?
Dim Book As New XLS.Book("d:\\test.xls") |