ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Name of files in a folder (https://www.excelbanter.com/excel-discussion-misc-queries/200169-name-files-folder.html)

Irfan Khan[_2_]

Name of files in a folder
 
Hi Experts,

How can I get name of all the files exist in one folder through VBA ???


Cheers !!!

Sheeloo

Name of files in a folder
 
Visit
http://www.experts-exchange.com/Prog..._21863237.html for one solution

"Irfan Khan" wrote:

Hi Experts,

How can I get name of all the files exist in one folder through VBA ???


Cheers !!!


Bob Phillips[_3_]

Name of files in a folder
 
A simple Dir loop does it

Dim filename As String

filename = Dir("C:\test\*.xls")
Do While filename < ""

Debug.Print filename
filename = Dir()
Loop


--
__________________________________
HTH

Bob

"Irfan Khan" wrote in message
...
Hi Experts,

How can I get name of all the files exist in one folder through VBA ???


Cheers !!!





All times are GMT +1. The time now is 07:11 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com