以文本方式查看主题

-  Foxtable(狐表)  (http://foxtable.com/bbs/index.asp)
--  专家坐堂  (http://foxtable.com/bbs/list.asp?boardid=2)
----  如何判断Excel表中特定名称的Sheet是否存在?  (http://foxtable.com/bbs/dispbbs.asp?boardid=2&id=122693)

--  作者:蓝色理想
--  发布时间:2018/7/31 12:53:00
--  如何判断Excel表中特定名称的Sheet是否存在?
如题,请指点一下
--  作者:有点甜
--  发布时间:2018/7/31 13:00:00
--  

参考

 

Dim Book As New XLS.Book("d:\\test.xls")
Dim ls As new List(Of String)
For Each sheet As xls.sheet In Book.Sheets
    ls.add(sheet.name)
Next
msgbox(ls.Contains("abc"))