also nur eine statische Funktion "zum Multiplizieren mit 1000" ist ziemlich einfach, siehe auch meine Antwort im Libreofficeforum:
https://ask.libreoffice.org/de/question ... rtraglich/
Code: Alles auswählen
from functools import partial
from operator import mul
def main(*_):
doc = XSCRIPTCONTEXT.getDocument()
selection = doc.CurrentSelection
numeric_ranges = selection.queryContentCells(3)
# ^^^Zahlen(1) plus Datums/zeitwerte(2)
mal_tausend = partial(mul, 1000)
for single_range in numeric_ranges:
data = single_range.DataArray
out = [tuple(map( mal_tausend , row)) for row in data]
single_range.DataArray = out