@@ 3619-3626 (lines=8) @@ | ||
3616 | if ($pSheet !== NULL) { |
|
3617 | // echo 'Passed sheet name is '.$pSheet->getTitle().'<br />'; |
|
3618 | // echo 'Range reference is '.$pRange.'<br />'; |
|
3619 | if (strpos ($pRange, '!') !== false) { |
|
3620 | // echo '$pRange reference includes sheet reference<br />'; |
|
3621 | $worksheetReference = PHPExcel_Worksheet::extractSheetTitle($pRange, true); |
|
3622 | $pSheet = $pSheet->getParent()->getSheetByName($worksheetReference[0]); |
|
3623 | // echo 'New sheet name is '.$pSheet->getTitle().'<br />'; |
|
3624 | $pRange = $worksheetReference[1]; |
|
3625 | // echo 'Adjusted Range reference is '.$pRange.'<br />'; |
|
3626 | } |
|
3627 | ||
3628 | // Extract range |
|
3629 | $aReferences = PHPExcel_Cell::extractAllCellReferencesInRange($pRange); |
|
@@ 3675-3682 (lines=8) @@ | ||
3672 | if ($pSheet !== NULL) { |
|
3673 | // echo 'Current sheet name is '.$pSheet->getTitle().'<br />'; |
|
3674 | // echo 'Range reference is '.$pRange.'<br />'; |
|
3675 | if (strpos ($pRange, '!') !== false) { |
|
3676 | // echo '$pRange reference includes sheet reference<br />'; |
|
3677 | $worksheetReference = PHPExcel_Worksheet::extractSheetTitle($pRange, true); |
|
3678 | $pSheet = $pSheet->getParent()->getSheetByName($worksheetReference[0]); |
|
3679 | // echo 'New sheet name is '.$pSheet->getTitle().'<br />'; |
|
3680 | $pRange = $worksheetReference[1]; |
|
3681 | // echo 'Adjusted Range reference is '.$pRange.'<br />'; |
|
3682 | } |
|
3683 | ||
3684 | // Named range? |
|
3685 | $namedRange = PHPExcel_NamedRange::resolveRange($pRange, $pSheet); |