Results 1 to 3 of 3
  1. #1
    Lounger
    Join Date
    Nov 2002
    Location
    Toronto, Ontario, Canada
    Posts
    28
    Thanks
    0
    Thanked 0 Times in 0 Posts

    SendMail Options (2k)

    Hi All,

    I know that I can send a workbook to a specific recipient using the following code:

    ActiveWorkbook.SendMail ActiveSheet.Range("a1").Value, "Subject Line"

    I also know that I can prepare the message, but not send, allowing the user to enter Recipient, Subject and body with the following:

    ActiveWorkbook.SendMail "", "Subject Line"

    How do I combine these two elements, preparing the message, adding recipient and subject automatically, but not actually sending the message? Therefore allowing the user to adjust/amend whatever they choose.

    Thanks,

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: SendMail Options (2k)

    I don't know of a way to do this. If you use Outlook, you could use Automation to create an Outlook e-mail message, set recipient, subject and message body, and attach a workbook, but this workbook must have been saved to disk. SendMail allows you to send an unsaved workbook.

  3. #3
    Uranium Lounger
    Join Date
    Dec 2000
    Location
    Salt Lake City, Utah, USA
    Posts
    9,508
    Thanks
    0
    Thanked 6 Times in 6 Posts

    Re: SendMail Options (2k)

    Robert, here's a site with much information on Sendmail.
    -John ... I float in liquid gardens
    UTC -7ąDS

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •