Hi All,
I'm trying to import data from multiple .txt files but I need to use a wildcard as the .txt files are date time stamped at the end.
The code I'm using at the moment is:
If I could just get "TEXT;C:\Data\Import-This*.txt" or something similar to work that would be great :0)
Thank you for your time and for reading.
Mark.
I'm trying to import data from multiple .txt files but I need to use a wildcard as the .txt files are date time stamped at the end.
The code I'm using at the moment is:
Code:
'Imports Data From File Specified into Excel
With ActiveSheet.QueryTables.Add(Connection:= _
"TEXT;C:\Data\Import-This-2011.09.12.220333.txt" _
If I could just get "TEXT;C:\Data\Import-This*.txt" or something similar to work that would be great :0)
Thank you for your time and for reading.
Mark.