
Set fs = Application.FileSearch
With fs
.LookIn = "C:TEMP"
.Filename = "*.CSV"
If .Execute(SortBy:=msoSortByFileName, SortOrder:=msoSortOrderAscending) > 0 Then
For i = 1 To .FoundFiles.Count: RICHIESTA_INPUT.ComboBox1.AddItem .FoundFiles(i): Next i
Else
Exit Sub
End If
End With |
Dim fs, f, f1, fc, s
Set fs = CreateObject("Scripting.FileSystemObject")
Set f = fs.GetFolder(folderspec)
Set fc = f.Files
For Each f1 In fc
If f1.Type = "File con valori separati da virgola (CSV) di Microsoft Excel" Then
RICHIESTA_INPUT.ComboBox1.AddItem f1 'a
Next |
