Quantcast
Channel: Apache OpenOffice Community Forum
Viewing all articles
Browse latest Browse all 1281

Macros and UNO API • Re: Simplify subroutine to avoid Calc function

$
0
0


Other way ,not to call worksheet function.
use python, eg:

Code:

doc = XSCRIPTCONTEXT.getDocument()data = doc.Sheets["Sheet15"]["A2:B28"].DataArraycountries, values = list(zip(*data))print( countries[values.index(52)])

Statistics: Posted by karolus — Thu Jan 30, 2025 7:15 pm



Viewing all articles
Browse latest Browse all 1281

Trending Articles