Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
File name
Hi,
I need to get filename of all *.xls files in specific directory and put it on the active worksheet. I don't know where to start . Plese help. Thanks in advance, Marijan |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
File name
Hi
have a look at http://tinyurl.com/yvvvm -----Original Message----- Hi, I need to get filename of all *.xls files in specific directory and put it on the active worksheet. I don't know where to start . Plese help. Thanks in advance, Marijan . |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
File name
thanks
|
#4
Posted to microsoft.public.excel.programming
|
|||
|
|||
File name
Sub ListFiles()
Dim I As Integer Cells.Delete With Application.FileSearch .LookIn = CurDir .Filename = "*.xls" If .Execute 0 Then For I = 1 To .FoundFiles.Count Cells(I, 1) = .FoundFiles(I) Next I Else MsgBox "There were no files found." End If End With Range("a1").Select End Sub Peter marijan glavac wrote in message ... Hi, I need to get filename of all *.xls files in specific directory and put it on the active worksheet. I don't know where to start . Plese help. Thanks in advance, Marijan |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
File:1 and File:2 -- Double Files when Opening One File | Excel Discussion (Misc queries) | |||
I saved file A over file B. Can I get file B back? | Excel Discussion (Misc queries) | |||
opening an excel file opens a duplicate file of the same file | Excel Discussion (Misc queries) | |||
I SAVED A FILE OVER ANOTHER A FILE IN EXCEL. THE OLD FILE WAS AN . | Excel Discussion (Misc queries) | |||
i received a file that reads powerpoint document file file exten. | Excel Discussion (Misc queries) |