I selected a cell in the imported range.
I clicked on Data|Import external data
and I was given the option for "edit text import"
In my simple testing, it looked like xl2002 remembered where I originally got
the data. I'm not sure you can change that behavior.
But maybe you could build a macro that you could run whenever you wanted to
refresh your data.
Just record it while you do it manually.
I got something like:
Option Explicit
Sub Macro1()
With ActiveSheet.QueryTables.Add(Connection:= _
"TEXT;C:\My Documents\excel\book1.csv", Destination:=Range("A1"))
.Name = "book1"
.FieldNames = True
.RowNumbers = False
.FillAdjacentFormulas = False
.PreserveFormatting = True
.RefreshOnFileOpen = False
.RefreshStyle = xlInsertDeleteCells
.SavePassword = False
.SaveData = True
.AdjustColumnWidth = True
.RefreshPeriod = 0
.TextFilePromptOnRefresh = False
.TextFilePlatform = 437
.TextFileStartRow = 1
.TextFileParseType = xlDelimited
.TextFileTextQualifier = xlTextQualifierDoubleQuote
.TextFileConsecutiveDelimiter = False
.TextFileTabDelimiter = True
.TextFileSemicolonDelimiter = False
.TextFileCommaDelimiter = True
.TextFileSpaceDelimiter = False
.TextFileColumnDataTypes = Array(1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1)
.TextFileTrailingMinusNumbers = True
.Refresh BackgroundQuery:=False
End With
End Sub
You could modify it slightly:
Option Explicit
Sub Macro1A()
Dim MyFileName as string
myfilename = thisworkbook.path & "\my.csv"
With ActiveSheet.QueryTables.Add(Connection:= _
"TEXT;" & MyFileName, Destination:=Range("A1"))
'rest of recorded code.
end sub