File Dialog

Use this to select a directory

Sub PickAFolder()

    With Application.FileDialog(msoFileDialogFolderPicker)
        .Show
        If .SelectedItems.Count > 0 Then
            Debug.Print .SelectedItems.Item(1)
        End If

    End With
End Sub

Published: 21-Feb-2005
Last edited: 01-Apr-2007 19:11