how do I filter the file list box to show only excel file types (with the option to show all file types if necessary)
anyhelp would be much appriciated.
Code:
Dim mFileSysObj As New FileSystemObject
Private Sub dir_Dirbox_Change()
fil_Filebox.Path = dir_Dirbox.Path 'updates the file path to the directory path
End Sub
Private Sub drv_Drivebox_Change()
On Error GoTo patherror
'update the directory path to the drive
dir_Dirbox.Path = drv_Drivebox.Drive
Exit Sub
End Sub
Private Sub fil_Filebox_Click()
Call displayData 'this updates the textbox
End Sub
Private Sub displayData()
txt_path.Text = "" 'clears text box
txt_path.Text = "Path Name: " & mFileSysObj.GetAbsolutePathName(fil_Filebox.Path)
'Gets path name and assigns it as a string to txt_path text box
End Sub