Main | Next line / New Line command for textbox, messagebox, error handler: VBA Excel Help »
Friday
Feb132009

Get all file names in a folder. Folder tree structure program alternative: VBA Excel Help 

Sub GetFolderName()

Dim lCount As Long

  With Application.FileDialog(msoFileDialogFilePicker) .InitialFileName _ = OpenAt .Show
     For lCount = 1 To .SelectedItems.Count
      Cells(lCount, 1).Value = .SelectedItems(lCount)
    Next lCount
  End With
End Sub

Reader Comments (2)

Your post is helpful and informative.

November 27, 2009 | Unregistered CommenterWebplore

ヅ Great.

November 19, 2010 | Registered CommenterGleb

PostPost a New Comment

Enter your information below to add a new comment.

My response is on my own website »
Author Email (optional):
Author URL (optional):
Post:
 
All HTML will be escaped. Textile formatting is allowed.