国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 辦公 > Excel > 正文

使用CreateObject創建Excel實例代碼

2024-08-23 19:28:12
字體:
來源:轉載
供稿:網友

  一、使用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 = True

  .Workbooks.Add

  .Range("A1") = "Hello World"

  End With

  End Sub

  二、使用CreateObject創建指定版本的Excel實例

  Sub mate()

  Dim objExcel As Object

  Set objExcel = CreateObject("Excel.Application.8")

  End Sub

  當Create對象實例之后,就可以使用該對象的所有屬性和方法了,如SaveAs方法、Open方法、Application屬性等。

發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 当阳市| 刚察县| 湖北省| 福鼎市| 营口市| 安西县| 札达县| 甘泉县| 灵武市| 大埔县| 柏乡县| 寿阳县| 颍上县| 高唐县| 普宁市| 文水县| 文水县| 佛坪县| 承德市| 琼中| 芒康县| 澄迈县| 海淀区| 上饶县| 宁化县| 定州市| 宿州市| 波密县| 阿鲁科尔沁旗| 柳河县| 新乡县| 通道| 青川县| 西平县| 鄱阳县| 冀州市| 江油市| 乡城县| 循化| 西华县| 老河口市|