Awesome! Flexible enough to use a switch/case to either save to the server or send it to the browser.
One more question... I'm creating two sheets within my script. The first thing I do is create a new sheet object and title it. The problem is that the resulting workbook contains three sheets, one of them titled 'Worksheet'. So, instead of using:
$objML = $objPHPExcel->createSheet();
What should I be doing to start with the default sheet and rename it to "Material List"?