Hi everyone,
I'm trying to write a macro that will swap from Excel to an *open* CSV file, and copy its contents into the current spreadsheet.
The CSV file doesn't have a fixed location, or have a fixed file name, so I can't simply loop through files in a folder, or call the filename directly.
I was hoping to use:
but it seems like the CSV file isn't counted as a Workbook.
I could get the user to save the CSV file somewhere fixed, but I want to try and make it user-interaction free as possible.
If it helps, the CSV file will be the only one open (i.e. there is no chance of getting mixed up between two) and it's file name will always begin with "LM".
Any ideas?
Bookmarks