Hi
Below I am populating a drop down with all files from a folder, I would like to change this to a list of check boxes.. so I can have users choose multiple values
Any body have an idea ?
Thank
Dim dir, folder, files
dir = "e:\WorkSpace\"
Set fso = CreateObject("Scripting.FileSystemObject")
Set folder = fso.GetFolder(dir)
Set files = folder.files
' Print out my listbox
MyListBox.RowSourceType = "Value List"
For Each file In files
If Right(file, 4) = "xlsx" Then
MyListBox.AddItem (file.Name)
End If
Next
Below I am populating a drop down with all files from a folder, I would like to change this to a list of check boxes.. so I can have users choose multiple values
Any body have an idea ?
Thank
Dim dir, folder, files
dir = "e:\WorkSpace\"
Set fso = CreateObject("Scripting.FileSystemObject")
Set folder = fso.GetFolder(dir)
Set files = folder.files
' Print out my listbox
MyListBox.RowSourceType = "Value List"
For Each file In files
If Right(file, 4) = "xlsx" Then
MyListBox.AddItem (file.Name)
End If
Next