点击保存按钮把控件内容保存到Excel时,提示报错!请版主们帮忙看下!
点击保存按钮把控件内容保存到Excel时,提示报错!office原先装的是2007,卸掉后,装office 2003还是报错,报错截图见附件!请版主们帮忙看下,谢谢![此贴子已经被作者于2018-7-5 17:21编辑过]
[此贴子已经被作者于2018-7-5 17:21编辑过]
Dim XlApp As New Excel.Application Dim XlBook As New Excel.Workbook Dim XlSheet As New Excel.Worksheet Set XlApp = CreateObject("Excel.Application") '创建EXCEL对象 Set XlBook = XlApp.Workbooks.Add XlApp.Visible = False Set XlBook = XlApp.Workbooks.Open(App.Path & "\ABC.xlsx") MsgBox "ABC.xlsx 文件已经打开。" XlApp.Quit
[此贴子已经被作者于2018-7-7 11:12编辑过]