Test if file exists using VBA or Excel without “DIR”
问题 I am stepping into a directory of folders and looking into the folders to get particular data each time I find a specific file. If I go to open the file I am looking for in a folder that it is not in, I get a debug error. So clearly I need to test the directory to see if the file is there and not try to open it if it is not (that is fine, not all the folders have the subject file). The DIR function is the hands on favorite to test a file's presence, but because I am using the DIR function to