I thought the standard import function would let you import the data to specified cells in an existing worksheet ?
If you are trying to import to a specified area in a worksheet, you could import the file to a blank worksheet and use formuale to copy the relevant info to specified cells?
If you are trying to import to a specified area in a worksheet, you could import the file to a blank worksheet and use formuale to copy the relevant info to specified cells?
That would have been my suggestion too.
And :razz: I resent being labeled a freak![]()

Public Function SplitLine(strLine As String, strDelim As String, lngCol As Long) As Variant
Dim p1 As String
Dim al() As String
p1 = Trim(strLine)
a1 = Split(strLine, strDelim, -1)
SplitLine = Trim(a1(lngCol))
End Function
How about using a User Defined Function... I've used this before.
Paste this into new/existing module or in the worksheet code
Code:Public Function SplitLine(strLine As String, strDelim As String, lngCol As Long) As Variant Dim p1 As String Dim al() As String p1 = Trim(strLine) a1 = Split(strLine, strDelim, -1) SplitLine = Trim(a1(lngCol)) End Function
And then call it from the spreadsheet with the CSV lines in extract individual elements
For example - this will give you element 3 from the line at A2
=SplitLine(A2,",",2)
Hope that makes sense :shrug:
Anyone got an method of importing a csv file into a pre defined excel spreadsheet?
Thanks
Nope doesn't make sense to me. Will read it several time to check
My knowledge goes about as far as, adding up a column and dispalying the result in another cell.