Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Verify if filename is valid
Hi,
I need to say if a specific path refer to a valid file. It tried to use the function below but it give true if the directory is valid. ex: myFileName = "C:\Temp" should answer false (all the time) myFileName = "C:\Temp\Test.xls" should answer true (if file exist) I tried that but doesn't work. Len(Dir$((myFileName,vbdirectory) Len(myFileName) CBool(Len(Dir(myFileName))) Thanks -- Alex St-Pierre |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
set filename to <filename-date on open | Excel Worksheet Functions | |||
'filename' not a valid web archive | Excel Discussion (Misc queries) | |||
XL2000: "Filename is Not Valid" | Excel Discussion (Misc queries) | |||
Several Dates -Verify | Excel Worksheet Functions | |||
Saving filename same as import filename | Excel Programming |