PHPExcel_Worksheet::setSharedStyle is deprecated. What should I use instead?

Topics: Developer Forum, User Forum
Jun 17, 2012 at 9:23 PM


Subj :)

Jun 17, 2012 at 10:41 PM

Default Worksheet style should only be used by PHPExcel_IReader implementations!

Set styles for cells or ranges of cells, rather than for worksheets.

A default worksheet style affects not only the individual cells in the worksheet, but also the row and column headings, and doesn't support all style features (e.g. borders)

Jun 17, 2012 at 11:21 PM

Mark, why are you talking about default worksheet style?

PHPDoc says:

"Set shared cell style to a range of cells"


And I specify a range of cells when I call $worksheet->setSharedStyle($style, $cellRange);

So I used this function to set cell styles, but yesterday I noticed that it is deprecated.


PS. When you mark a method as deprecated, please specify a reason and alternatives.