This problem occurs when all of the following conditions are true:
- You open a workbook containing macro code, that you saved as a Web page (HTML file).
-and-
- Excel cannot read the Editdata.mso file associated with the page. This problem occurs when any of the following conditions are true:
- Another process locks the Editdata.mso file associated with the file.
-or-
- The file does not have Write permissions (if saved on an NTFS partition).
-or-
- The file is deleted.
When you save an entire workbook as a Web page (HTML), Excel stores all Visual Basic for Applications and OLE information in a file called Editdata.mso. It saves this file in a folder called
filename_files in the same directory as the HTML file.
If Excel cannot read the Editdata.mso file when loading the HTML file, it doesn't display any warning, nor does it write it out again during any subsequent save. During the save operation, Excel detects that the Editdata.mso was not saved, and so it deletes any existing Editdata.mso file as unneeded. With no Editdata.mso file, therefore, the HTML file loses any macros.