* Eike Rathke <[EMAIL PROTECTED]> [040705, 19:09]:
> Hi Ennio-Sr,
> 
> On Mon, Jul 04, 2005 at 18:57:46 +0200, Ennio-Sr wrote:
> 
> >   oRanges.addNewByName(sName$,xcl$,oCellAddress,Sheet_x) ' --->>> was 0)    
> > instruction.
> > Thanks to your suggestion I replaced the 4th parameter (Sheet_x) with an
> > integer parameter, that gets its numeric value (0, 1, 2, etc) according
> > tothe Sheet_x name
> 
> Which still sounds wrong to me. Please see the documentation at
> http://api.openoffice.org/docs/common/ref/com/sun/star/sheet/XNamedRanges.html#addNewByName
> 
> When adding a common named range or formula the argument should be simply 0.
> 
>   Eike
> 

Ok, read the doc: probably my choice just worked 'by chance' as it was
using one of the valid numbers for NamedRangeFlags. It also works using
'3' (which is not among the valid NRF numbers) but I'm doing no
further use of that named range and this would explain why I dom't get
error. However, I finally put the 'canonical' 0 in that instruction :-)

Thanks again, Eike.
All the best,
        Ennio.



-- 
[Perche' usare Win$ozz (dico io) se ..."anche uno sciocco sa farlo.   \\?//
 Fa' qualche cosa di cui non sei capace!"  (diceva Henry Miller) ]    (°|°)
[Why use Win$ozz (I say) if ... "even a fool can do that.              )=(
 Do something you aren't good at!" (as Henry Miller used to say) ]

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

Reply via email to