Select the product you need help with
- Internet Explorer
- Windows Phone
- More products
WD: VBA Code Not Saved After You Use the Undo Command
Article ID: 185143 - View products that this article applies to.
This article was previously published under Q185143
Visual Basic for Applications code is lost, when all of the following conditions are true:
When you use the Undo command, the document is flagged as unmodified. Because the document is flagged as unmodified, the document is not saved when you use the Save command.
Save your document while the Visual Basic Editor is open. This will ensure that your Visual Basic for Applications code is saved.
Microsoft has confirmed this to be a problem in the Microsoft products listed at the beginning of this article.
Article ID: 185143 - Last Review: January 22, 2007 - Revision: 2.1