C
crh
Guest
I have created a macro to import a txt file and it works fine, however the issue i have is that the filename will change on a daily basis as the system that produces the txt file assigns it a chronological order and appends to the filename each day. So today my file is named xxx0123.txt but tomorrow it will be called xxx0124.txt. Of course, the macro now falls over. I have tried using a wildcard, e.g. xxx*.txt, but access wants to find the exact filename. Can anyone advise how i can update the macro to either ask the user for input (e.g. a browse window) or how i can use something like a wildcard? Much appreciated.