'Here ya go
' Ok start a new project add the common dialog control add a command button
' Add a text box and paste in this code into
VB then hit F5 click the button
Private Sub Command1_Click()
On Error GoTo OpenErr:
With CommonDialog1
.CancelError = True ' turn on error checking
.DialogTitle = "Open AutoCAD" ' dialog title
.Filter = "AutoCAD Files(*.txt)|*.txt|" ' I used txt because I don;t know the fileExt
.ShowOpen ' show open dialog
If Len(.FileName) = 0 Then Exit Sub ' do nothing if length is zero
If Not Right(.FileName, 3) = "txt" Then ' remmber to replace txt with the AutoCAD FileExt
MsgBox "Not a vaild AutoCAD File", vbInformation, "inavild File"
Exit Sub
Else
' do what ever here
Text1.Text = .FileName
End If
End With
Exit Sub
OpenErr:
If Err = cdlCancel Then Err.Clear
End Sub
When ya dreams come true.