2个回答
展开全部
Private Sub Command1_Click()
CommonDialog1.DialogTitle = "请打开一个CAD文件"
CommonDialog1.Filter = "CAD文件(*.dwg)|*.dwg|CAD文件(*.dxf)|*.dxf"
CommonDialog1.ShowOpen
wenjinname = CommonDialog1.FileName
Shell "路径\acad.exe " & wenjinname
End Sub
CommonDialog1.DialogTitle = "请打开一个CAD文件"
CommonDialog1.Filter = "CAD文件(*.dwg)|*.dwg|CAD文件(*.dxf)|*.dxf"
CommonDialog1.ShowOpen
wenjinname = CommonDialog1.FileName
Shell "路径\acad.exe " & wenjinname
End Sub
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询