Analyzing your prompt, please hold on...
An error occurred while retrieving the results. Please refresh the page and try again.
Sheet.SheetId property is found inside the DocumentFormat.OpenXml.Spreadsheet namespace and is part of OpenXml. You can see this property and its value inside workbook.xml as shown in the following screenshot. Aspose.Cells provides the equivalent property as Worksheet.GetTabId().

The following sample code loads the sample Excel file, reads its Sheet or Tab Id, then assigns it new Tab Id and saves it as output Excel file. Please also see the console output of the code given below for a reference.
#include <iostream>
#include "Aspose.Cells.h"
using namespace Aspose::Cells;
int main()
{
Aspose::Cells::Startup();
// Load source Excel file
Workbook wb(u"sampleSheetId.xlsx");
// Access first worksheet
Worksheet ws = wb.GetWorksheets().Get(0);
// Print its Sheet or Tab Id on console
std::cout << "Sheet or Tab Id: " << ws.GetTabId() << std::endl;
// Change Sheet or Tab Id
ws.SetTabId(358);
// Save the workbook
wb.Save(u"outputSheetId.xlsx");
Aspose::Cells::Cleanup();
return 0;
}
Sheet or Tab Id: 1297Analyzing your prompt, please hold on...
An error occurred while retrieving the results. Please refresh the page and try again.