Saltar al contenido principal
Versión: Siguiente

VP MOVE CELLS

Historia
LanzamientoModificaciones
19 R4Añadidos

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

ParámetrosTipoDescripción
originRangeObject->Rango de celdas desde donde copiar
targetRangeObject->Rango de destino para los valores, el formato y las fórmulas
optionsObject->Opciones adicionales

Descripción

El comando VP MOVE CELLS mueve o copia los valores, estilo y fórmulas de originRange a targetRange.

originRange y targetRange pueden referirse a diferentes áreas View Pro.

En originRange, pase un objeto rango que contenga los valores, el estilo y las celdas de la fórmula a copiar o mover. 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.

El parámetro options tiene varias propiedades:

PropiedadTipoDescripción
copyBooleanDetermines 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 lo que se pega. 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.

Se tienen en cuenta las opciones de pegado definidas en las opciones del libro de trabajo.

Ejemplo

Para copiar el contenido, los valores, el formato y las fórmulas de un rango origen:

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)

Ver también

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