Great forum! Sorry if I post some really dumb questions over the next few days, I am a complete newbie to progamming.
I want to set only the folder names inside a folder on my hard disk to display in a combo box. Done in such a way that if new folders are added or renamed the combo box will refresh.
I found a post from Golom which had this (below) which was real close but I cant figure how to show folder names only. Kudos go to Golom for such a simple piece of code that even I can understand it, just cant change it ;-)
Dim FileName As String
FileName = Dir("C:\MyDirectory\*.*"
Combo1.Clear
Do Until Len(FileName) = 0
Combo1.AddItem FileName
FileName = Dir()
Loop