So I have a code the lists down file names in folders and the following is the part of the code that responsible to fetch the name of the files
This code go through, as it's written, MyFileName = Dir(Key & "*17519*"), the code will fetch all files that has 17519 as part of the name. and it works just fine.
I need to modify the code as per the following to make criteria of a specific text string in the file name be variable depending on the a value entered in a specific cell. so I did the following
But it didn't work, how can I have a variable be part of DIR function.
below is the full code just for reference.
Bookmarks