Copy a worksheet and its named ranges

Topics: Developer Forum
Nov 6, 2012 at 11:38 AM

Hi,

When I copy a worksheet into the same document, named ranges of the worksheet copied are note duplicated.

How can I duplicate named ranges with new reference ?

ex: TabA!toto => TabB!toto


$sheet = $sheetModele->copy();
$sheet->setTitle('TabB');
$oModele->addSheet($sheet);

Thanks

Coordinator
Nov 6, 2012 at 8:52 PM
This discussion has been copied to a work item. Click here to go to the work item and continue the discussion.