Hi Guys,
I've recently been using some code to convert my php code into MS Excel 97. It worked great, I have now tested it on MS Excel 2007 and \t doesn't seem to work!?!?! Has anyone got any ideas why or how to get round it. The below code works great as it should in MS Excel 97 but appears incorrect in MS Excel 2007.
<?
header ("Content-type: application/csv\nContent-Disposition: \"inline; filename=thefile.csv\"");
echo"
Name \t Address \r\n
$name \t $address \r\n
";
?>
In 2007 it does pick up the new lines but not the new cells; \t.
Hope you can help
Thanks for looking,
Mitch.