Analyzing your prompt, please hold on...
An error occurred while retrieving the results. Please refresh the page and try again.
The sample code below shows how to set tab color with Aspose.Cells.
const path = require("path");
const AsposeCells = require("aspose.cells.node");
// The path to the documents directory.
const dataDir = path.join(__dirname, "data");
// Instantiate a new Workbook
// Open an Excel file
const workbook = new AsposeCells.Workbook(path.join(dataDir, "Book1.xlsx"));
// Get the first worksheet in the book
const worksheet = workbook.getWorksheets().get(0);
// Set the tab color
worksheet.setTabColor(AsposeCells.Color.Red);
// Save the Excel file
workbook.save(path.join(dataDir, "worksheettabcolor.out.xls"));
Analyzing your prompt, please hold on...
An error occurred while retrieving the results. Please refresh the page and try again.