XLL+ Class Library (6.3)

CXlMacros::Copy

Equivalent to choosing the Copy command from the Edit menu

static int Copy(
   const CXlOper& from_reference = CXlOper::MissingArg(),
   const CXlOper& to_reference = CXlOper::MissingArg()
);

Parameters

from_reference

From_reference is a reference to the cell or range of cells you want to copy. If from_reference is omitted, it is assumed to be the current selection.

to_reference

To_reference is a reference to the cell or range of cells where you want to paste what you have copied.

Return Value

Zero if the function has been called successfully; non-zero if the function could not be called. See Error codes for a list of return values.

Remarks

See the Microsoft Excel on-line Help for full details about this function.

Requirements

Header: xlfuncs.h

See Also

CXlMacros Class | CXlMacros Methods