//For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-C //Path of input excel file StringPtr sampleInsertingDeletingRowsAndColumns = dirPath->StringAppend(new String("sampleInsertingDeletingRowsAndColumns.xlsx")); //Path of output excel file StringPtr outputInsertingDeletingRowsAndColumns = outPath->StringAppend(new String("outputInsertingDeletingRowsAndColumns.xlsx")); //Read input excel file intrusive_ptr workbook = Factory::CreateIWorkbook(sampleInsertingDeletingRowsAndColumns); //Accessing the first worksheet in the Excel file intrusive_ptr worksheet = workbook->GetIWorksheets()->GetObjectByIndex(0); //Deleting 10 rows from the worksheet starting from 3rd row worksheet->GetICells()->DeleteRows(2, 10); //Save the Excel file. workbook->Save(outputInsertingDeletingRowsAndColumns);