Code: Select all
Dim strFile As String
strFile = ThisWorkbook.Path & "\" & "Export.TXT"
Sheets("1").Select
With ActiveSheet.QueryTables.Add(Connection:=strFile, Destination:=Range("A1"))
C:\Users\Nathan\Documents\Export.TXT
I'm getting Run time error 1004 on the above, please can anyone tell me why? Thanks