XL2000: Code Module May Be Missing After Opening and Saving Workbook as Web Page

ID: Q221493


The information in this article applies to:
  • Microsoft Excel 2000


SYMPTOMS

If you save a file as a Web page, and that file contains Visual Basic for Applications macro code, when you reopen the file, you receive no warning that the file contains macros. If you go into the Visual Basic Editor there are no code modules and no Sub procedures available for that workbook.


CAUSE

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.


STATUS

Microsoft has confirmed this to be a problem in the Microsoft products listed at the beginning of this article.

Additional query words: XL2000

Keywords : kbdta xlloadsave xlvbainfo
Version : WINDOWS:2000
Platform : WINDOWS
Issue type : kbbug


Last Reviewed: July 30, 1999
© 2000 Microsoft Corporation. All rights reserved. Terms of Use.