View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
AA2e72E[_2_] AA2e72E[_2_] is offline
external usenet poster
 
Posts: 93
Default Problems converted comma seperated CVS file!

This is a brute force solution: note the comments. Replace the file name with your file name

Sub TransposeCSV(
' Source file MUS
' 1. have between 1 and 255 row
' 2. the same number of delimiters (,) on each ro
col =
Close #
Open "c:\aa.csv" For Input As #
While Not EOF(1
Line Input #1,
a = Split(q, ","
b = Application.WorksheetFunction.Transpose(a
For i = LBound(b) To UBound(b
ActiveSheet.Cells(i, col) = b(i, 1
Next
col = col +
Wen
Close #
End Sub