Hi i have the following code to grab names from a folder i specify, however how can i have a message box that tells me the number of files name returned back?
Code:
Sub FetchNames()
Dim myPath As String
Dim myFile As String
myPath = Range("H2")
myFile = Dir(myPath & "*.*")
r = 2
Do While myFile <> ""
Cells(r, 1).Value = myFile
r = r + 1
myFile = Dir
Loop