在cad中如何用vba代码打开指定目录下的excel文件.既实现cad与excel的通信?
1个回答
展开全部
Sub Cad_radExcel()
Dim xlApp As Excel.Application
Dim xlSheet As Object
Dim xlWorkbook As Object
Set xlApp = CreateObject("excel.application")
Set xlWorkbook = xlApp.Workbooks.Open("C:\你的文件名.xls")
xlApp.Visible = True
End Sub
Dim xlApp As Excel.Application
Dim xlSheet As Object
Dim xlWorkbook As Object
Set xlApp = CreateObject("excel.application")
Set xlWorkbook = xlApp.Workbooks.Open("C:\你的文件名.xls")
xlApp.Visible = True
End Sub
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询
广告 您可能关注的内容 |