一、使用CreateObject创建Excel
Sub LateBinding()
"Declare a generic object variable
Dim objExcel As Object
"Point the object variable at an Excel application object
Set objExcel = CreateObject("Excel.Application")
"Set properties and execute methods of the object
With objExcel
.Visible = T...[ 查看全文 ]