Hi, I've written some code that will open csv files in a given directory and copy in relevant data. This works ok but I want a slicker way of doing this therefore am looking to use the get external data function. I've recorded a macro and this runs fine, however, when I try to substitute the filename with a variable, I get an error. My code is as follows:
This code resides within a module
I suppose my query is, how can I get this code to work so that I can vary the csv filename in a loop??
Thanks in anticipation
Mike
Bookmarks