https://issues.apache.org/bugzilla/show_bug.cgi?id=48923

Nick Burch <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |INVALID

--- Comment #1 from Nick Burch <[email protected]> 2010-05-26 10:52:07 
EDT ---
You're using the wrong method there.

getSheetIndex will tell you which Sheet a named range is DEFINED FOR, or -1 if
it applies to the whole of the workbook (see the javadocs for details). Your
named ranges apply to the whole of the workbook, which is why you get -1

You probably want name.getSheetName(), which gives you the sheet it references,
not the sheet it's defined on

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to