Excel: Using the OPEN.MAIL Command in MacroLast reviewed: November 2, 1994Article ID: Q61401 |
SUMMARYIn Microsoft Excel, when using the OPEN.MAIL() command in a macro, an error message is returned if a message with the specified subject is not found. To disable this error message and see if the message was opened, the following sequence of macro commands can be used
=ERROR(FALSE) =OPEN.MAIL("subject",FALSE) =IF(GET.DOCUMENT(1)="enclosure",ALERT("It opened"),ALERT("not there")) =RETURN()where "subject" is a text string matching the subject of the mail message that is to be opened, and "enclosure" is a text string that matches the name of the file enclosed in the opened mail message. For more information on the OPEN.MAIL command, see page 255 of the "Microsoft Excel Functions and Macros" version 2.2 manual.
|
KBCategory: kbother
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |