Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 28
Default Name of files in a folder

Hi Experts,

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


Cheers !!!
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 793
Default 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 !!!

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,420
Default 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 !!!



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Copying all files in a folder to new folder michaelberrier Excel Discussion (Misc queries) 2 June 20th 06 05:35 AM
how can I specific a folder with wildcard criteria and excel will import all the correct files in that folder? Raven Excel Discussion (Misc queries) 1 January 24th 06 03:28 PM
Iterating files in folder Minerva Excel Worksheet Functions 1 January 11th 06 10:00 AM
add same cell from all files in same folder Richard Varcoe Excel Discussion (Misc queries) 1 May 23rd 05 02:24 PM
Files and folder library Shayne Excel Discussion (Misc queries) 3 February 20th 05 03:05 PM


All times are GMT +1. The time now is 02:36 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"