请问在VBA中如何调用CAD程序打开DWG文件 ShellExecute 0, "open", dwgfile, vbNullString, vbNullString, vbNormalFocus //运行不通过,提示没有这个函数定义 Shell "acad.exe " + dwgfile //找不到acad.exe文件 Shell "c:\program files\AutoCAD2005\acad.exe" + dwgfile //这样可以运行,但是把路径写死了 有个办法:找到acad.exe程序路径,但不知道如何寻找 |