This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// セルの書式を指定位置にコピーする | |
// @param $from_cells コピー元のセル範囲 | |
// @param $to_cell コピー先の左上のセル | |
// @param $copycount コピーを繰り返す回数(下へコピーするのみ) | |
function CopyCellsFormat($sheet, $from_cells, $to_cell, $copycount=1) { | |
// ---------------------------------------- | |
// コピー元のセルの範囲を数値で取得 | |
// ---------------------------------------- | |
$from_area = PHPExcel_Cell::rangeBoundaries($from_cells); // ex) array( array(2, "2"),array(53, "3")) |