Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi,
XL 2003 I found the following code from the newsgroup to check if a file exists in a particular folder. Sub MyTestFileExists() Dim FName As String FName = ThisWorkbook.Sheets("Sheet1").Range("A1").Text If Dir(FName) = "" Then Range("B1").Value = "Does not exist" Else Range("B1").Value = "Exists" End If End Sub Code works great for one file. Is it possible to amend this code to loop through a dynamic range, (currently A1:A200, but will grow) to identify each filename and place the results in the adjacent cell in column B (B1:B200)? Any help appreciated. Thanks Bob East Maitland Australia |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Check if specifik folder exist. | Excel Programming | |||
Save file in a new folder, but create folder only if folder doesn't already exist? | Excel Programming | |||
Create Folder If It Doesn't Exist | Excel Programming | |||
Does folder exist problem | Excel Programming | |||
How to check if a folder/directory exist using VBA | Excel Programming |