top of page
  • John

Get all files in a folder

Updated: Apr 12

NOTE: this post and the code it contains is still valid, however, it has been superseded by the 'Working with files and folders in VBA' post here

This Function returns an array of Strings where each String is the name of a file in the specified folder ... it can include or exclude hidden files. This is another convenience function to simplify working with the VBA Dir function (and when you don't want or can't use the FileSystemObject) whenever you need to get a list of files.

Example usage:

Limitations: Windows only



bottom of page