micmania1 Posted October 5, 2009 Share Posted October 5, 2009 I'm using com to create an excel document then saving it. All simple. However, some cells are populated by our logical unique code associated with a row of data. An example would be 01.110 Excel is formatting this numerically (1.11) which is not what I want. Can anybody point me in the direction of a tutorial, documentation or anything that can help me format a cell as text? Thanks in advance. Link to comment https://forums.phpfreaks.com/topic/176563-solved-php-com-excel-cell-formatting/ Share on other sites More sharing options...
micmania1 Posted October 5, 2009 Author Share Posted October 5, 2009 For anybody's future reference: $Worksheet->Cells($row,$column)->NumberFormat = "@"; This formats the cell as text. Link to comment https://forums.phpfreaks.com/topic/176563-solved-php-com-excel-cell-formatting/#findComment-930808 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.