duplicate row with comboBox help

Topics: Developer Forum, Project Management Forum, User Forum
Sep 17, 2014 at 4:24 PM
hello i create xsl file :
Image

i want duplicate row 3 - 10 times like this:
Image

and this is my code to do this:
<?php

set_include_path(get_include_path() . PATH_SEPARATOR . 'Classes/');
require_once 'PHPExcel.php';
$inputFileName = './insertUsers.xlsx';
$outputFileName = './output.xlsx';

try {
    $objPHPExcel = PHPExcel_IOFactory::load($inputFileName);
} catch (Exception $e) {
    die('Error loading file "' . pathinfo($inputFileName, PATHINFO_BASENAME) . '": ' . $e->getMessage());
}
$sheet = $objPHPExcel->getActiveSheet();

$start = 4;
$end = 11;
for($i='A'; $i<='H'; $i++)
{
    $val = $sheet->getCell($i.'3')->getValue();
    $sheet->duplicateStyle($sheet->getStyle($i.'3'),$i.$start.':'.$i.($end-1));
    for($j=$start; $j<$end; $j++)
    {
        $sheet->setCellValue($i.$j, $val); 
    }
}

$objWriter = new PHPExcel_Writer_Excel2007($objPHPExcel); 
$objWriter->save($outputFileName); 
?>
but my output is:
Image

As can be seen my problem is that my code not duplicate comboBox...
What should I do?

my comboBox has VB macro script too...

tnx!!!!