This may be a simple error but I have a problem copying worksheets. i need to create an excel document that will generate multiple copys of worksheets. every thing works fine except the worksheets are copied to the position before the original. this complicates some of my latter code. here is the command that copies the tab.
$this->_wkb->Worksheets("Sheet2")->Copy($this->_wkb->Worksheets("Sheet4"));
[code=php]
The Excel functions say that I must specify Before or After when Copying a worksheet. how can i change this code to the After version(ie the tab is copied after the original)?
Thanks.