For Calc -------- Data to cell ^^^^^^^^^^^^ Automatic calculate size range. .. code-block:: python def calc_data_to_cell(): sheet = app.active_sheet data = ( ('Month', 'Total'), ('January', 100), ('February', 200), ('March', 300), ('April', 400), ('May', 500), ) sheet['A1'].data = data return Copy visible cells ^^^^^^^^^^^^^^^^^^ .. code-block:: python doc = app.active rangos = doc.active['A1'].current_region.visible doc.select(rangos) doc.copy() doc.active['A15'].select() doc.paste() Merge by row ^^^^^^^^^^^^ .. code-block:: python rango = app.selection rango.merge_by_row()