I have a multitude of files within a folder being pdf and Excel.
They are identified by their leading 3 characters ie ZZf....xls. Ideally only one Excel file will match ZZf in that folder.
I want to quickly get the filename inside that folder matching ZZf so I can use it later. Doing this via VBA as have a few hundred to do. ABf,ARf,BBf etc.
I guess I want the standard 'file open' with its 'find files' option' dialog box you get manually but macro recorder just gives me final file open choice. Hopefully vba can avoid actual dialog and handle error when ZZf finds no files or multiple files.
Any ideas?
They are identified by their leading 3 characters ie ZZf....xls. Ideally only one Excel file will match ZZf in that folder.
I want to quickly get the filename inside that folder matching ZZf so I can use it later. Doing this via VBA as have a few hundred to do. ABf,ARf,BBf etc.
I guess I want the standard 'file open' with its 'find files' option' dialog box you get manually but macro recorder just gives me final file open choice. Hopefully vba can avoid actual dialog and handle error when ZZf finds no files or multiple files.
Any ideas?