You could get that with a batch command. you could use the following command.
dir /s /q *.xls >FileName.xls The whole list of files are shown in the excel and you could make the change over to it. A macro help could be done after you run the batch command once by recording a macro. Pavan On Mon, Jun 29, 2009 at 10:26 PM, kunal <kunal.r...@gmail.com> wrote: > Hi all, > > I am stuck with a problem now, Please help. > My problem is : I need a macro which will search a group of folders > containing documents with extention .xls, .xlsx, .doc, .docx, ppt, pptx, > .PDF and txt. I want all the document name to get populate in the B2 coloum > of an excel and all the file names to be shoted alphabetically. And also the > file path should get populate from C2 column. > > > Thanks in advance, > > > Regards, > > Kunal Rout > > > > -- V.V.N. Pavan Kumar --~--~---------~--~----~------------~-------~--~----~ ------------------------------------------------------------------------------------- Some important links for excel users: 1. Excel and VBA Tutorials(Video and Text), Free add-ins downloads at http://www.excelitems.com 2. Excel tutorials at http://www.excel-macros.blogspot.com 3. Learn VBA Macros at http://www.vbamacros.blogspot.com 4. Excel Tips and Tricks at http://exceldailytip.blogspot.com To post to this group, send email to excel-macros@googlegroups.com If you find any spam message in the group, please send an email to: Ayush Jain @ jainayus...@gmail.com or Ashish Jain @ 26may.1...@gmail.com ------------------------------------------------------------------------------------- -~----------~----~----~----~------~----~------~--~---