By using t2do.com you agree to our cookie policy, We and our partners operate globally and use cookies, for multiple purposes

T2Do.com

 


Count files in a directory

I developed a VBA function called =countfiles() which would take a file directory name as input and return the number of files in the directory. I could pass a filter to show only files that had a string in it.

This was useful when receiving files I could verify whether I had all the files I need before starting processing.