Not sure what you mean here. Can up code an Excel sheet to connect to a mysql db? Yes, use vBA and code behind the sheet.
If you are looking to export some mysql data thru php, then there are other options
- [man]COM[/man]
- write a script to create a CSV file, which excel can read, no problem
- Export html to excel thru the content headers with PHP