XLL+ Class Library (6.3)

CXlMacros::PasteSpecial

Equivalent to choosing the Paste Special command from the Edit menu

static int PasteSpecial(
   unsigned short paste_num,
   unsigned short operation_num,
   bool skip_blanks,
   bool transpose
);

Parameters

paste_num

Paste_num is a number from 1 to 6 specifying what to paste.

operation_num

Operation_num is a number from 1 to 5 specifying which operation to perform when pasting.

skip_blanks

Skip_blanks is a logical value corresponding to the Skip Blanks check box in the Paste Special dialog box.

transpose

Transpose is a logical value corresponding to the Transpose check box in the Paste Special dialog box.

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