未定义类型
Dim excel As excel.application = New Excel.Application()excel.Application.Workbooks.Add(True) 中的excel.application 在VBN.NET中说是未定义的类型,这是什么原因? --------------------编程问答-------------------- 你定义错误!
应该这样:
(祥情请参见:http://topic.csdn.net/u/20080127/16/2a102bc7-ea5d-4f5a-b962-4da424407fdf.html )
Dim xlExcel As Excel.Application
Dim xlBook As Excel.Workbook
Dim xlSheet As Excel.Worksheet
补充:VB , 基础类