addDefinedName

addDefinedName

BASIC / ADVANCED / PREMIUM

Adds defined names into the Excel spreadsheet.

Description
public addDefinedName($name, $value, $options = array())

This method allows adding a defined name to a range of cells.

Parameters

name

Defined name.

value

Defined name value.

Exceptions

Defined name exists.

Code samples

Example #1

The resulting XLSX looks like:

Release notes
  • phpxlsx 2.5:
    • new method.