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, you may receive the following error message: When you click Details, you receive an error message similar to the following:
CAUSE
This problem occurs when you do the following:
WORKAROUND
Use 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 the Microsoft products listed
at the beginning of this article. Additional query words: mapi OFF2000 XL2000
Keywords : kbdta |
Last Reviewed: May 13, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |