Manesh is correct Strphen but there is a second method you might want to use.

The workbook.getNumberOfSheets() method will return an int value that indicates 
how many sheets there are in the workbook. That value may be used to control a 
loop where you iterate through the sheets calling the 
workbook.getSheetName(index) value for each.

--- On Sat, 11/1/08, Mahesh Ganapathy <[EMAIL PROTECTED]> wrote:
From: Mahesh Ganapathy <[EMAIL PROTECTED]>
Subject: Re: find sheets in a workbook
To: "POI Users List" <[email protected]>
Date: Saturday, November 1, 2008, 10:03 PM

I believe there is a workbook.getSheetName(i) method.
------Original Message------
From: s gallaghan
To: [email protected]
ReplyTo: POI Users List
Subject: find sheets in a workbook
Sent: Nov 2, 2008 12:01 AM

hi all
is it possible to find the sheetnames from a workbook?

cheers
stephen

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



Sent via BlackBerry by AT&T

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




      

Reply via email to