Hi
I know it is possible to open a file with using wildcards, but is it possible to get the full address/filename using wildcards without opening the file?
eg opening using wildcards:
And I know you can get full address/name with:
The reason is that I am pulling data from files that will be changed monthly, and only part of the name will remain consistent. I'm using ADO functions to pull in the data without opening the sheets, but for that I need to point specifically to the workbook, wildcards don't work.
Thanks for any help
I know it is possible to open a file with using wildcards, but is it possible to get the full address/filename using wildcards without opening the file?
eg opening using wildcards:
VBA Code:
FilePath=FolderPath & "*DUB*"
Workbooks.Open FilePath
And I know you can get full address/name with:
VBA Code:
ThisWorkbook.FullName
The reason is that I am pulling data from files that will be changed monthly, and only part of the name will remain consistent. I'm using ADO functions to pull in the data without opening the sheets, but for that I need to point specifically to the workbook, wildcards don't work.
Thanks for any help