你看这样行吗?
我不知道是不你说的那样..
-----------------------------------------
Dim DwgPath As String On Error Resume Next With CommonDialog1 .CancelError = True .MaxFileSize = 32767 .Flags = cdlOFNHideReadOnly Or cdlOFNAllowMultiselect Or cdlOFNExplorer Or cdlOFNNoDereferenceLinks .DialogTitle = "Select File" .Filter = "Drawing(*.dwg)|*.dwg|*(*.*)|*.*" .ShowOpen DwgPath = .FileName End With
Application.Documents.Open DwgPath
|