Message 1 of 10
Help needed...CommonDlg method

Not applicable
06-15-2006
12:25 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi All,
Can neone please help me with this. I am getting a type mismatch error at If .ShowOpen Then . If I give Me.cdlgMainFrm.ShowOpen as a separate line instead of giving in if ,I am getting an error that ParseFileNames method does not exist. Is ParseFileNames method a inbuilt method. Ne help with this is appreciated.
Private Sub CommandButton1_Click()
Me.cdlgMainFrm.DialogTitle = "Select Drawing files"
With cdlgMainFrm
.Filter = "AutoCAD Drawings (*.dwg)|*.dwg"
.Flags = OFN_ALLOWMULTISELECT Or OFN_EXPLORER
.MaxFileSize = 3072
If .ShowOpen Then
Files = Me.cdlgMainFrm.ParseFileNames 'I am copying the files in ParseFileNames into Files which is a Variant.
End If
End With
End Sub
Thanks
Avantika.
Can neone please help me with this. I am getting a type mismatch error at If .ShowOpen Then . If I give Me.cdlgMainFrm.ShowOpen as a separate line instead of giving in if ,I am getting an error that ParseFileNames method does not exist. Is ParseFileNames method a inbuilt method. Ne help with this is appreciated.
Private Sub CommandButton1_Click()
Me.cdlgMainFrm.DialogTitle = "Select Drawing files"
With cdlgMainFrm
.Filter = "AutoCAD Drawings (*.dwg)|*.dwg"
.Flags = OFN_ALLOWMULTISELECT Or OFN_EXPLORER
.MaxFileSize = 3072
If .ShowOpen Then
Files = Me.cdlgMainFrm.ParseFileNames 'I am copying the files in ParseFileNames into Files which is a Variant.
End If
End With
End Sub
Thanks
Avantika.