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. 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á ?
Gracias
Alejandro
---------------------------------
Enviado desde Correo Yahoo!
La bandeja de entrada más inteligente.