-
Notifications
You must be signed in to change notification settings - Fork 5
Find Value in Cells
shoaibkhan-aspose edited this page Apr 17, 2014
·
1 revision
//Instantiating a Workbook object
Workbook workbook = new Workbook("workbook.xls");
//Accessing the first worksheet in the Excel file
Worksheet worksheet = workbook.getWorksheets().get(0);
//Finding the cell containing the specified formula
Cells cells = worksheet.getCells();
//Instantiate FindOptions
FindOptions findOptions = new FindOptions();
//Finding the cell containing a string value that starts with "Or"
findOptions.setLookAtType(LookAtType.START_WITH);
Cell cell = cells.find("SH",null,findOptions);
//Printing the name of the cell found after searching worksheet
System.out.println("Name of the cell containing String: " + cell.getName());
Download Source Code
For further releases and updates, please follow these new repositories:
- Aspose.Words Java for Apache POI
- Aspose.Cells Java for Apache POI
- Aspose.Slides Java for Apache POI
- Aspose.Email Java for Apache POI
- For documentation, please visit Aspose Docs.
- Raise your queries and suggest more examples via Aspose Forums or via new social coding sites.