M
mthomas
We are using the FileSystemObject to capture folder names in a
specified path and need to list them in a combo box in the spreadsheet. How
do we assign them to the row source of the drop down?
'CODE********************************
Dim fso As New FileSystemObject
Dim flds As Folders
Dim strText As String
Dim i As Integer
Set flds = fso.GetFolder("C:\").SubFolders
i = 1
For Each f In flds
strText = f.Name
'NEED CODE HERE TO LIST FOLDERS IN DROP DOWN ROW SOURCE.
i = i + 1
Next
'END**********************************
specified path and need to list them in a combo box in the spreadsheet. How
do we assign them to the row source of the drop down?
'CODE********************************
Dim fso As New FileSystemObject
Dim flds As Folders
Dim strText As String
Dim i As Integer
Set flds = fso.GetFolder("C:\").SubFolders
i = 1
For Each f In flds
strText = f.Name
'NEED CODE HERE TO LIST FOLDERS IN DROP DOWN ROW SOURCE.
i = i + 1
Next
'END**********************************