Bonsoir à tous je viens de connaitre PHPExcel que je trouve super sympas.

Voici mon code :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
 
$objPHPExcel->setActiveSheetIndex(0)
            ->setCellValue('B2', 'Je&nbspm&nbspappel&nbspjules')
            ->setCellValue('B4', '=SUBSTITUE(B2;"&nbsp";" ")');
Et biensûre ce n'est q'un exemple sauf la formule.

Avec cette formule il me met comme erreur :

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
( ! ) Fatal error: Uncaught exception 'Exception' with message 'Formation!B4 -> Formula Error: An unexpected error occured' in C:\wamp\www\PHPExcel\Classes\PHPExcel\Cell.php on line 288				
( ! ) Exception: Formation!B4 -> Formula Error: An unexpected error occured in C:\wamp\www\PHPExcel\Classes\PHPExcel\Cell.php on line 288				
Call Stack				
#	Time	Memory	Function	Location
1	0.0116	377608	{main}( )	..\01simple-download-xls.php:0
2	0.2061	5118776	PHPExcel_Writer_Excel5->save( )	..\01simple-download-xls.php:73
3	0.3151	6985784	PHPExcel_Writer_Excel5_Worksheet->close( )	..\Excel5.php:171
4	0.3311	7150520	PHPExcel_Cell->getCalculatedValue( )	..\Worksheet.php:441
Pouvez vous m'aider s'il vous plait merci d'avance