2021-06-03 17:47:12 -05:00
|
|
|
|
2021-06-03 22:09:34 -05:00
|
|
|
For Calc
|
|
|
|
--------
|
2021-06-03 17:47:12 -05:00
|
|
|
|
2021-06-03 22:09:34 -05:00
|
|
|
Data to cell
|
|
|
|
^^^^^^^^^^^^
|
|
|
|
|
|
|
|
Automatic calculate size range.
|
2021-06-03 17:47:12 -05:00
|
|
|
|
|
|
|
.. code-block:: python
|
|
|
|
|
2021-06-03 22:09:34 -05:00
|
|
|
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
|
2021-06-03 17:47:12 -05:00
|
|
|
return
|