在安装excel异常或使用绿色EXCEL版本的客户端上,"MSExcel.Application"无法使用,但"xls.book"可用,但后者又没法引用批注,所以有了如下需求:
Dim Book As New XLS.Book(ProjectPath & "\test.xls")
Dim Sheet1 As XLS.Sheet = Book.Sheets("sheet1")
If Sheet1(0,0).XX.Comment IsNot Nothing Then
END If
XX是啥?以前似乎看到过。谢谢。