The information in this article applies to:
SYMPTOMSWhen you open a workbook in e-mail or save the attachment and open the workbook in Microsoft Excel 97, you may receive the following error message: When you click Details, you receive an error message similar to the following:
CAUSEThis problem occurs when you do the following:
-and- WORKAROUNDUse either of the following methods to work around this problem. Method 1: Use Two, Separate MacrosIn order to use the Delete method and the SendMail property, you can use two separate macro subroutines. However, you would run each macro individually. In the following example, you would first run Sub DelSheet, and then, when it is finished, you would run Sub SendEmail.
Method 2: Use the OnTime MethodTo use both the Delete method and SendMail property in the same macro subroutine, you can use the OnTime method. The OnTime method runs a specified macro at a specified time interval. By using this method, you can delete a worksheet and wait N seconds before sending the e-mail, where N represents the number of seconds to wait. The example below waits 5 seconds before running the SendEmail macro procedure:
STATUSMicrosoft has confirmed this to be a problem in Excel 97 for Windows. MORE INFORMATIONAdditional query words: XL97 mapi
Keywords : kbdta |
Last Reviewed: October 30, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |