splitXlsx

splitXlsx

PREMIUM TRIAL / ADVANCED

Splits an Excel document per sheet.

Description
public splitXlsx (string $source, string $target, array $options)

This method allows to split per sheet an Excel document.

Parameters

source

The path to the source Excel document.

target

The path to the resulting Excel document.

Code samples

Example #1

Release notes
  • phpdocx 16.0:
    • allow setting a custom path for the target files distinct than the source folder.
  • phpdocx 13.0:
    • cleans activeTab.
  • phpdocx 12.5:
    • new method.