Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to make a drop-down list detect changes in folder?

Status
Not open for further replies.

earhear

Technical User
May 19, 2003
1
MY
i want my pull-down menu/drop-down list to detect changes in my Folder.
For instance, if my Folder has "folderA" and "folderB", then my drop-down list will display the names - "folderA" and "folderB". But if I add another "folderC" in my Folder, the drop-down list will also display the name "folderC".

Could I do this using VBScript? Please help.
 
with the onclick event on the drop down list

try


Set objFolder = FSO.GetFolder("d:\rootfolder")
For Each subFolder In objFolder.SubFolders
'DropdownList.add subFolder.Name
msgbox subFolder.Name
Next
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top