NamedRange::Cut Method (Object^)

 

Cuts the contents of the NamedRange control to the Clipboard or pastes it into a specified destination.

Namespace:   Microsoft.Office.Tools.Excel
Assembly:  Microsoft.Office.Tools.Excel (in Microsoft.Office.Tools.Excel.dll)

Object^ Cut(
	Object^ Destination
)

Parameters

Destination
Type: System::Object^

The range where the data should be pasted. If this argument is omitted, the object is cut to the Clipboard.

Return Value

Type: System::Object^

For information on optional parameters, see Optional Parameters in Office Solutions.

The following code example uses the Find method to find the first cell with the value Seashell in a NamedRange control. The example then uses the FindNext and FindPrevious methods to find the next cell with the value Seashell and then return to the original cell. Finally, the example uses the Cut method to cut the contents of the first cell with the value Seashell and paste it into cell B1.

This example is for a document-level customization.

No code example is currently available or this language may not be supported.
Return to top
Show: