Hello to All,
first I would like to thank everybody using this website and posting resolutions to problems. It has helped me many times in similar problems I had. Now to my current problem.
I have a list of file names in Row A on a spreadsheet in Excel 2007. I have in Row B the starting directory path to start the search for the filename. I need to find a way in VBA to list the path of that file in Row C in the excel sheet if the file was found. The challenge is that I have to search every subdirectory within the given start path. So basically the example is:
Row A shows file name ABC.gif, Row B shows starting path as C:/pictures and Row C would post the directory found like C:/pictures/gif
Row A can contain 1 to 2000 files names.
Does anybody have a quick solution to this for VBA? Any help or suggestions is appreciated.
thanks a bunch.
Michael
first I would like to thank everybody using this website and posting resolutions to problems. It has helped me many times in similar problems I had. Now to my current problem.
I have a list of file names in Row A on a spreadsheet in Excel 2007. I have in Row B the starting directory path to start the search for the filename. I need to find a way in VBA to list the path of that file in Row C in the excel sheet if the file was found. The challenge is that I have to search every subdirectory within the given start path. So basically the example is:
Row A shows file name ABC.gif, Row B shows starting path as C:/pictures and Row C would post the directory found like C:/pictures/gif
Row A can contain 1 to 2000 files names.
Does anybody have a quick solution to this for VBA? Any help or suggestions is appreciated.
thanks a bunch.
Michael