Excel: Using Workgroup Extensions for Microsoft ExcelLast reviewed: October 7, 1997Article ID: Q101363 |
4.00 4.00a
WINDOWS
kbmacro
The information in this article applies to:
SUMMARYThe following macro demonstrates the steps necessary to send electronic mail from a Microsoft Excel macro using Workgroup Extensions for Microsoft Excel. The purpose of this macro is to send a mail message to a person with the email alias "JillDoe" and to attach the ARCHES.BMP file. NOTE: Before you run the macro, you must load the file XLMAPI.XLL. The macro is as follows
A 1 auto_email 2 =MAIL.LOGON(,"CoolPass",FALSE) 3 =MAIL.NEW.MESSAGE() 4 =SET.MAIL.MESSAGE(7,"JillDoe")) 5 =SET.MAIL.MESSAGE(1,"My Test Message") 6 =SET.MAIL.MESSAGE(8,"c:\windows\arches.bmp") 7 =SET.MAIL.RECIPIENT(GET.MAIL.MESSAGE(9)+1,"JoUser",,2) 8 =MAIL.SEND.MESSAGE() 9 =MAIL.LOGOFF() 10 =RETURN()where:
MORE INFORMATIONFor more information on Workgroup Extensions for Microsoft Excel, or to obtain the XLMAPI.XLL file, download the file MAPIDEMO.EXE from the Microsoft Download Service at (425) 936-MSDL.
REFERENCESWorkgroup Extensions for Microsoft Excel
|
KBCategory: kbmacro
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |