Applies the appearance of one cell to one more other cells.

Syntax

rv = Send_Message(Ctrl, "OLE.CopyType", Field, Record, CopyCell)

Parameters

ParameterDescription
FieldThe field position of the cell to be copied
RecordThe record position of the cell to be copied
CopyCellThe cell(s) to receive the copied type in the format Field:@FM:Record

Remarks

The CopyType method copies the type of the given cell and applies it to the cells specified in the CellCopy parameter. The CellCopy parameter has two fields: Field and Record. Treat the CellCopy parameter like any index to a cell-specific property. Like index parameters, you may specify multiple cells by using the "All" keyword or by using the range specifier.

When copying types, the data specified in the CopyType property is copied.

Example

// Copy from one cell to another single cell 
rv = Send_Message(Ctrl, "OLE.CopyType", 1, 1, 2:@FM:2) 

// Copy from one cell to a whole record of cells: record 2 
rv = Send_Message(Ctrl, "OLE.CopyType", 1, 1, "All":@FM:2) 

// Copy from one cell to a range of cells: (2, 2) - (5, 5) 
rv = Send_Message(Ctrl, "OLE.CopyType", 1, 1, "2-5":@FM:"2-5")

See Also

CopyAppearance

  • No labels