在Catia中打开excel文件(例如C:\ xxx \ xxx / .xls)

时间:2015-06-03 13:38:56

标签: catia

我在vba中真的很新,我想问一下如何用宏在Catia中打开特定的excel文件(xxx.xls)。提前谢谢你的帮助。 干杯

1 个答案:

答案 0 :(得分:1)

使用catia filesystem对象,如下所示

Dim FileSys
Set FileSys = CATIA.FileSystem

Dim xlApp 
Set xlApp = CreateObject("Excel.Application")

Dim mydoc 
Set mydoc = xlApp.workbooks.open("Add the file path here")