Bind to a Folder Using the Browse for Folder Dialog Box
' Bind to a Folder Using the Browse for Folder Dialog Box
Const WINDOW_HANDLE = 0 Const NO_OPTIONS = 0
Set objShell = CreateObject("Shell.Application") Set objFolder = objShell.BrowseForFolder _ (WINDOW_HANDLE, "Select a folder:", NO_OPTIONS, "C:\Scripts") Set objFolderItem = objFolder.Self