sorry, it's not doing the job -
sure the sub opens the csv file but it doesn't allow me to go through the page where I choose the tab delimiters as the "import data" routine does.
when I record the sub I get:
"TEXT;D:\My Documents\EXP\TOF\2495a.csv", Destination:=Range("A1"))Destination:=Range("A1"))
PHP Code:
.Name = fname
.FieldNames = True
.RowNumbers = False
.FillAdjacentFormulas = False
.PreserveFormatting = True
.RefreshOnFileOpen = False
.RefreshStyle = xlInsertDeleteCells
.SavePassword = False
.SaveData = True
.AdjustColumnWidth = True
.RefreshPeriod = 0
.TextFilePromptOnRefresh = False
.TextFilePlatform = 862
.TextFileStartRow = 1
.TextFileParseType = xlDelimited
.TextFileTextQualifier = xlTextQualifierDoubleQuote
.TextFileConsecutiveDelimiter = False
.TextFileTabDelimiter = True
.TextFileSemicolonDelimiter = False
.TextFileCommaDelimiter = False
.TextFileSpaceDelimiter = False
.TextFileColumnDataTypes = Array(1, 1)
.TextFileTrailingMinusNumbers = True
.Refresh BackgroundQuery:=False
End With
and the lineI need to modify is the first one where instead of a full address I want an open question to pop, letting me to9 choose the file.