Alejandro Rivas Morán escribió:
Ariel Constenla-Haile <[EMAIL PROTECTED]> escribió: 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.
------------------------------------------
Hola
He intentado interpretar la info de la URL previa pero no le encuentro modo de arreglar.
¿has estudiado esa página? IMO está bastante clara, aunque los ejemplos
están en Java.
Buscando en oooforum encontré esto:
http://www.oooforum.org/forum/viewtopic.phtml?t=24943
pero igual, ... ese error mencionado en el aporte final también me resulta.
Cómo será ?
para mi los forums son una pérdida de tiempo, y como tengo poco, en vez
de leer toda una discusión, en tres minutos escribí esto
http://www.ArielConstenlaHaile.com.ar/ooo/temp/com.sun.star.sheet.XFunctionAccess.ods
vuelve a estudiar la Developer's Guide
http://wiki.services.openoffice.org/wiki/Documentation/DevGuide/Spreadsheets/Function_Handling
Aún en inglés y con ejemplos en Java, está más claro que el agua (clara)
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]