phpexcel set data type string

Solutions on MaxInterview for phpexcel set data type string by the best coders in the world

showing results for - "phpexcel set data type string"
Aqua
18 Apr 2018
1$worksheet->getCell('A1:A50')->setDataType(PHPExcel_Cell_DataType::TYPE_STRING);
Max
24 Nov 2018
1$objPHPExcel->setActiveSheetIndex(0)
2    ->setCellValue('A1', 'Field Name');
3    
4$objPHPExcel->getActiveSheet()->getColumnDimension('A')->setWidth(50);
5
6$columnArray    = array("A","B","C","D","E","F","G","H");
7	
8$objPHPExcel->setActiveSheetIndex(0)
9->setCellValueExplicit("A", VALUE, PHPExcel_Cell_DataType::TYPE_STRING)