Alejandro Rivas Morán escribió:
Estoy usando la funcion Vlookup en un módulo OObasic

'----- ?
Hojabase=Thiscomponent.GetSheets.GetByName("BASE")

Hojabase.getCellByPosition(3,0).SetString("LEN-"+listacodigos(nnn))
Hojabase.getCellByPosition(4,0).SetFormula("=vlookup(D1;NOTAS.A2:B30000;2)")
poslenguale=Hojabase.getCellByPosition(4,0).GetValue()
'-----?                         

La cuestíon es: -Cómo puede usar la función Vlookup en
el código sin que tenga que insertarla en una celda y
extraer el resultado.

Gracias

Citando:
http://wiki.services.openoffice.org/wiki/Documentation/DevGuide/Spreadsheets/Function_Handling#Calculating_Function_Results

"The com.sun.star.sheet.FunctionAccess service calls any spreadsheet function and gets its result without having to insert a formula into a spreadsheet document."

Saludos
Ariel.

--
Ariel Constenla-Haile
La Plata, Argentina

[EMAIL PROTECTED]
[EMAIL PROTECTED]

http://www.ArielConstenlaHaile.com.ar/ooo/



"Aus der Kriegsschule des Lebens
                - Was mich nicht umbringt,
        macht mich härter."
                Nietzsche Götzendämmerung, Sprüche und Pfeile, 8.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Responder a