Use testmemo && Samples employee as test table =Table2ClipBoard() #include "xlconstants.h" oExcel = createobject("Excel.Application") With oExcel .Workbooks.Add .visible = .t. With .ActiveWorkbook.ActiveSheet .Paste .Range('A1').CurrentRegion.Replace("PMARK",chr(10),xlPart,xlByRows, .F.) Endwith With .Selection .ColumnWidth = 50 && Increase width for memo .HorizontalAlignment = xlGeneral .VerticalAlignment = xlTop .WrapText = .T. Endwith Endwith Function Table2ClipBoard lcTempFileName = "X"+sys(2015)+".tmp" handle = fcreate(lcTempFileName) && Create a temp file #Define TABULATE chr(9) #Define NL chr(13) For ix = 1 to fcount() =fwrite(handle, field(ix)) If ix < fcount() =fwrite(handle, TABULATE) Endif Endfor =fwrite(handle, NL) Scan && Start scan..endscan For ix = 1 to fcount() && Write field values =fwrite(handle, typeconvert(ix) ) If ix < fcount() =fwrite(handle, TABULATE) Endif Endfor =fwrite(handle, NL) Endscan lnSize=fseek(handle,0,2) =fseek(handle,0,0) _Cliptext = fread(handle, lnSize) && Read file to clipboard =fclose(handle) Erase (lcTempFileName) Function typeconvert Lparameters tnField lcType = type(field(ix)) If lcType = "G" lcField = field(ix) Return transform(&lcField) Endif luValue = eval(field(ix)) Do case Case lcType = "D" lcValue = dtoc(luValue) Case lcType = "T" lcValue = ttoc(luValue) Case lcType $ "NY" lcValue = padl(luValue,20," ") Case lcType = "L" lcValue = iif(luValue,"Yes","No") Case lcType $ "M" && Replace paragraph marks with "PMARK" lcValue = strtran(luValue, chr(13)+chr(10), "PMARK") Case lcType $ "C" lcValue = luValue Otherwise lcValue = "" Endcase Return alltrim(lcValue)Pls keep in mind that copying to clipboard won't work with large tables and should be divided.