Moves text currently in the clipboard into a cell.

Syntax

rv = Send_Message(Ctrl, "OLE.Paste", Cell)

Parameters

ParameterDescription
CellIndex to the cell whose text is to be replaced with the clipboard text, in the format Field:@FM:Record

Remarks

The Paste method provides you with the ability to programmatically paste text into a single cell, replacing the cell's current text. The user, however, always has this ability via the standard CTRL+V shortcut. Use this method when you wish to tie this ability to a menu option.

Example

// Paste the clipboard text into cell (1, 1) 
rv = Send_Message(Ctrl, "OLE.Paste", 1:@FM:1)

See Also

CopyCutUndo

  • No labels