I am currently using this code to bring up a list of Jpg files in a list box.
With Application.FileSearch
.NewSearch
.LookIn = "Directory Path here"
.Filename = "*.jpg" 'file extension
.SearchSubFolders = False
.Execute
For i = 1 To .FoundFiles.Count
imageform1.ListBox1.AddItem .FoundFiles(i)
Next i
End With
Now this shows the entire file path in the list box. Is there a way to just have the file name appear in the listbox?
Thanks in advance