create button named = browseButton create filelistbox named = List1
double click on a button in a design
and the code should look like this:
Private Sub browseButton_Click() Dim path As String path = "C:\My Folder" List1.path() = path List1.Pattern = "*.txt" End Sub
will execute it now
Janardhan g
source share