I've got a program that exports cell by cell from a MSFlexGrid to an excel worksheet, using the code:


With MSFViewer
for mRow = 0 to .Rows - 1
for mcol = 0 to .Cols - 1
mXcol = Chr(65 + mcol)
mExcel.Application.ActiveWorkbook.Worksheets.Application.ActiveCell(mRow + 1, mXcol) = .TextMatrix(mRow, mcol)
next
next
End With




This works fine but is very slow.

Is there a way of cutting and pasting the whole grid directly into excel?
Thanks

James