How to determine current row or column

Topics: Developer Forum, User Forum
Mar 14, 2011 at 4:02 PM

How do I determine the current row or current column in PHPExcel?

I have an Excel workbook that opens to the first unused row.  The SetCellValue and SetCellValueByColumnAndRow require arguments of row and column.  Any easy way to know which row and column you are currenty at?

 

Thanks

Coordinator
Mar 14, 2011 at 4:06 PM
$currentCell = $objPHPExcel->getActiveSheet()->getActiveCell();
Mar 14, 2011 at 4:10 PM

Duh!  Very easy.  Thanks for the quick response.

 

Craig