I am using this code in a common dialogue control. I want it to open up showing only .xls files. Any idea why it's not working. Thanks
Private Sub Command4_Click()
Dim strData As String
With Me.cdlg
'Initial Directory
.InitDir = "K:\"
'Dialog Title
.DialogTitle = "ESPN Transcription Documents"
'Filter File Types
.Filter = ".xls"
.ShowOpen
'Return File and Path to a Variable
strData = .FileName
End With
MsgBox "Path: " & strData
End Sub
Private Sub Command4_Click()
Dim strData As String
With Me.cdlg
'Initial Directory
.InitDir = "K:\"
'Dialog Title
.DialogTitle = "ESPN Transcription Documents"
'Filter File Types
.Filter = ".xls"
.ShowOpen
'Return File and Path to a Variable
strData = .FileName
End With
MsgBox "Path: " & strData
End Sub