 <p>It sounds like your VBA script is in an Excel spreadsheet, and you want it to automatically execute when you invoke the .xls(x) from Firefox.</p> <p>If so, you can try this:</p> <p>1) Write your VBA as an "Auto_Open macro" or use the "Open" event on your worksheet:</p> <p><a href="http://office.microsoft.com/en-us/excel-help/running-a-macro-when-excel-starts-HA001034628.aspx" rel="nofollow">http://office.microsoft.com/en-us/excel-help/running-a-macro-when-excel-starts-HA001034628.aspx</a></p> <p>2) Make sure your Windows file associations are set so that Firefox will open your .xls(x) file or link with MS Excel </p> <p>3) You can use a <a href="http://www.cs.tut.fi/~jkorpela/fileurl.html" rel="nofollow">file URL</a>, format <code>file://host/path</code> to link to the document</p>