in reply to Troubles transposing a range in Excel with Win32::OLE

I tried it on my pc, and got the same result. I'm running win2k, office 2k, and perl 5.6.1. I then tried using VB to write the code, and wasn't able to make the call either. I'm guessing something isn't right with the ole object. You can always transpose the vaules yourself. If you use my $range_values = $sheet->Range("A1:C5")->{'Value'}; range_values will be a reference to a 2d array. Simply flip the array and write the results with $sheet->Range("D1:F5")->{'Value'} = $range_values; Let me know if you find anything else out.