Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Is there an easy way of telling whether or not a file exists? What I am
looking for is something along the lines of =IF (FILE_EXISTS(C:\FILENAME),"OK","not OK") |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Best to add a UDF
Function BookExists(wb As String) BookExists = Len(Dir(wb)) 0 End Function and use like =IF(BookExists("C:\myfile.xls"), "yes","no") -- HTH Bob Phillips (remove xxx from email address if mailing direct) "Mike McLellan" wrote in message ... Is there an easy way of telling whether or not a file exists? What I am looking for is something along the lines of =IF (FILE_EXISTS(C:\FILENAME),"OK","not OK") |
#3
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Many thanks, Bob
"Bob Phillips" wrote: Best to add a UDF Function BookExists(wb As String) BookExists = Len(Dir(wb)) 0 End Function and use like =IF(BookExists("C:\myfile.xls"), "yes","no") -- HTH Bob Phillips (remove xxx from email address if mailing direct) "Mike McLellan" wrote in message ... Is there an easy way of telling whether or not a file exists? What I am looking for is something along the lines of =IF (FILE_EXISTS(C:\FILENAME),"OK","not OK") |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Copy File Automatically on Opening It | Excel Discussion (Misc queries) | |||
Pasword protected Excel file encrypted, how do I read this file? | Excel Discussion (Misc queries) | |||
Weird File Open/Save As Behavior | Excel Discussion (Misc queries) | |||
cannot open excel file, please help!!! | Excel Discussion (Misc queries) | |||
Opening a file with code without a set file name | Excel Discussion (Misc queries) |