要用xls.book处理,参考
Dim book As new XLS.Book("d:\\test.xls")Dim contain As Boolean = FalseFor i As Integer = 0 To book.Sheets.count-1 If book.sheets(i).name = "sheet1" Then contain = True Exit For End IfNextIf contain Then msgbox(1)Else msgbox(2)End If