Hi,
I ran the below code to get the file path. By selecting the file it retrieve the file path.
[pre]
[/pre]
But I wish to get all the file path by choosing a folder and the path should display as one by one Range from "F5, F6, F7, ... end".
And I need to extract all types of files i.e. xls, xlsx, txt, pdf, etc.
Kindly advise me.
Regards,
Vargeesh M
I ran the below code to get the file path. By selecting the file it retrieve the file path.
[pre]
Code:
Sub GetFilePath()
FilePath = Application.GetOpenFilename("Excel Files (*.xls), *.xls")
If FilePath <> False Then
Range("F5").Value = FilePath
End If
End Sub
But I wish to get all the file path by choosing a folder and the path should display as one by one Range from "F5, F6, F7, ... end".
And I need to extract all types of files i.e. xls, xlsx, txt, pdf, etc.
Kindly advise me.
Regards,
Vargeesh M