title: Attach macro file to php excel generated file
body: <p>My problem is the following... I am re-developing a system for a gym and I would like to make an excel file with macros in case Internet doesn't work. The problem arise when I want to generate my excel file (php) from my DB coz I don't know how to keep my macro functions attached to the file.</p>
  
  <p>The idea behind is that, at the end of the day, the administrator generate that file so that, the next morning, if the internet is down, the gym can works with the latest info (with the macro and vb stuff).</p>
  
  <p>I googled "php attach macro file to excel" but couldn't find a solution (I would have to previously develop the macro functionality).</p>