Copies a cell's text to the clipboard.
Syntax
rv = Send_Message(Ctrl, "OLE.Copy", Cell)
Parameters
Parameter | Description |
---|---|
Cell | The cell whose text is to be copied, in the format Field:@FM:Record |
Remarks
The Copy method provides you with the ability to programmatically copy a single cell's text to the clipboard. The user, however, always has this ability via the standard CTRL+C shortcut. Use this method when you wish to tie this ability to a menu option.
Example
// Copy the text of cell (1, 1) to the clipboard rv = Send_Message(Ctrl, "OLE.Copy", 1:@FM:1)