Saltar para o conteúdo principal
Versão: Próximo

VP MOVE CELLS

História
ReleaseMudanças
19 R4Adicionado

VP MOVE CELLS ( originRange : Object ; targetRange : Object ; options : Object )

ParâmetroTipoDescrição
originRangeObject->Intervalo de células a partir do qual copiar
targetRangeObject->Intervalo de destino para os valores, formatação e fórmulas
optionsObject->Opções adicionais

Descrição

The VP MOVE CELLS command moves or copies the values, style and formulas from originRange to targetRange.

originRange and targetRange can refer to different View Pro areas.

In originRange, pass a range object containing the values, style, and formula cells to copy or move. If originRange is a combined range, only the first one is used.

In targetRange, pass the range of cells where the cell values, style, and formulas will be copied or moved.

The options parameter has several properties:

PropriedadeTipoDescrição
copyParâmetrosDetermines if the values, formatting and formulas of the cells in originRange are removed after the command executes:
  • False (default) to remove them
  • True to keep them
pasteOptionsLongintEspecifica o que é colado. Possible values:

ValueDescription
vk clipboard options all (default)Pastes all data objects, including values, formatting, and formulas.
vk clipboard options formattingPastes only the formatting.
vk clipboard options formulasPastes only the formulas.
vk clipboard options formulas and formattingPastes the formulas and formatting.
vk clipboard options valuesPastes only the values.
vk clipboard options value and formattingPastes the values and formatting.

The paste options defined in the workbook options are taken into account.

Exemplo

Para copiar os conteúdos, valores, formatação e fórmulas de um intervalo de origem:

var $originRange; $targetRange; $options : Object

$originRange:=VP Cells("ViewProArea"; 0; 0; 2; 5)

$targetRange:=VP Cells("ViewProArea"; 4; 0; 2; 5)

$options:=New object
$options.copy:=True
$options.pasteOptions:=vk clipboard options all

VP MOVE CELLS($originRange; $targetRange; $options)

Veja também

VP Copy to object
VP PASTE FROM OBJECT
VP SET WORKBOOK OPTIONS