Excel: Using the SEND.MAIL() Function in 2.20

Last reviewed: November 2, 1994
Article ID: Q51071

SUMMARY

When the SEND.MAIL() function is executed from a Microsoft Excel version 2.20 macro, the active Excel screen (worksheet, macro sheet, or chart) becomes an enclosure for the mail message. Pages 278-279 in the "Microsoft Excel Functions and Macros" version 2.2 manual incorrectly describe the arguments for the SEND.MAIL() function; the recipients and subject must be enclosed in quotation marks, as described below.

MORE INFORMATION

Function

   =SEND.MAIL(recipients,subject,return_receipt)

Arguments

   Recipients
   ----------

   An array of names enclosed in quotation marks. If the macro is
   sending to more than one recipient, commas are used to separate
   each recipient name, and the group of names is surrounded by braces
   (for example, {"Name 1","Name 2","Name 3"}). The server in which
   each recipient resides can be distinguished by including a "@server
   name" after the recipient's name. This server name distinction is
   important when trying to send a message to same-named recipients
   that reside on different servers.

   Subject
   -------

   A text argument enclosed in quotation marks. If the subject is
   omitted, the name of the Excel file being sent is used as the
   subject.

   Return_Receipt
   --------------

   Specifies whether the Return Receipt check box is turned on or off.
   If return_receipt is TRUE, the check box is checked; otherwise, it
   is not checked. If the return_receipt argument is not given, it is
   assumed to be FALSE.

   For example, if you want to send a worksheet called "Forecasted
   Sales" from a macro with return receipt to Craig and Bob on the
   server named "Marketing" and to Bob on the server named "Sales",
   you could use the following macro function:

   =OPEN("Forecasted Sales")
   =SEND.MAIL({"Craig, Bob@Marketing, Bob@Sales"},"Forecasted Sales",TRUE)
   =RETURN()


KBCategory: kbdocerr
KBSubcategory:

Additional reference words: 2.20


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: November 2, 1994
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.