sub Spalte_auftrennen
with thiscomponent.sheets(0) 'erste Tabelle
for i = 0 to 999 ' erste Zeile bis 1000ste Zeile
aerg = split( .getcellbyposition(0, i).string) 'am Leerzeichen aufsplitten
for icol = 0 to ubound(aerg)
.getcellbyposition(icol, i).formulalocal = aerg(icol)
next icol
next i
end with
end sub
Das Makro trennt alle Zelllinhalte von A1:A1000 am Leerzeichen und verteilt die Einzelteile über [Anzahl Leerzeichen -1] Spalten.
Gruß Karo
LO7.4.7.2debian 12(bookworm) auf Raspberry4b 8GB (64bit) LO24.8.2.1 flatpakdebian 12(bookworm) auf Raspberry4b 8GB (64bit)