Declare Long GlobalLock in Win32API Long hMem Declare Long GlobalUnlock in Win32API Long hMem Declare Long GlobalSize in Win32API Long hMem Declare String lstrcpy in Win32API String @ lpDest, Long lpSrc Declare Long OpenClipboard in Win32API Long Declare Long CloseClipboard in Win32API Declare Long RegisterClipboardFormat in Win32API String Declare Long GetClipboardData in Win32API Long uFormat s = "" cf = RegisterClipboardFormat("Rich Text Format") If(OpenClipboard(0) != 0) h = GetClipBoardData(cf) If h > 0 len = GlobalSize(h) s = Replicate(Chr(0), len) ptr = GlobalLock(h) lstrcpy(@s, ptr) s = Left(s, len-1) GlobalUnlock(h) EndIf CloseClipboard() EndIf ? s>I have a Word document that contains a table. I need to copy data from this table to Word. Creating a Word instance and moving through the table is no problem. The problem starts when copying data from Word to VFP.