求教:请问用vb怎么实现cad与excel连接
www.dimcax.com
求教:请问用vb怎么实现cad与excel连接
求教:请问用vb怎么实现cad与excel连接并使得cad的数据能够读取与录入到excel中
谢谢!!
on error resume next
set excelapp = getobject(, "excel.application")
if err then
err.clear
set excelapp = createobject("excel.application")
if err then
msgbox ("不能运行exceld")
exit sub
end if
end if
excelapp.visible = true
这样实现了连接
但是我不知道怎么实现数据的读取与录入,就是从cad与excel互动
如果稍微了解一点excel的vba二次开发,此功能就不难实现了。具体的操作界面楼主如有兴趣不妨参阅xrcad v7.0(dimcax]= )中的菜单“表格转换工具”(该菜单轻松实现了autocad与excel表格相互间数据的导入及导出功能)。