This project is read-only.

Aspose.Cells - Find Value in Cells

//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"

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 More Examples, Please Visit Aspose Docs

Last edited Apr 14, 2014 at 5:58 PM by shoaibkhan, version 3