Export to Excel

Hi
When exporting to excel from master/details screen, is it possible to add each table on to a new tab/worksheet?
thanks

If you are using the PhpSpreadsheet extension, you probably need to modify the codes to set the active sheet index before exporting the details. For example:$this->PhpSpreadsheet->setActiveSheetIndex(1); // Set to sheet 1
//…
$this->PhpSpreadsheet->setActiveSheetIndex(2); // Set to sheet 2
//…

Hi
Does anyone have a example on how to do this