There is a way to transpose a matrix in Excel.For the rest...In which form is input_v39??? An txt, csv, tab or asc file???Any of this forms you can in Excel directly import without problems.If you can run your code under VBA??? I dont know!!!