Aspose.Cells - Set Worksheet Tab Color

//Instantiate a new Workbook
Workbook workbook = new Workbook(dataPath + "workbook.xls");

//Get the first worksheet in the book
Worksheet worksheet = workbook.getWorksheets().get(0);

//Set the tab color
worksheet.setTabColor(Color.getRed());

//Save the Excel file
workbook.save(dataPath + "AsposeColoredTab_Out.xls");


Download Source Code

For More Examples, visit Aspose Docs

Last edited Nov 11, 2014 at 2:12 PM by shoaibkhan, version 1