Results 1 to 3 of 3
  1. #1
    4 Star Lounger
    Join Date
    Feb 2001
    Location
    Richland, Washington, USA
    Posts
    407
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Outlook Message via VBA (2003 SP2)

    I'm creating outgoing Outlook e-mail via VBA (from within Access using Automation). I would like to control (specify) the "From" property -- I have my own Exchange Server mailbox from which the Outlook object appears to pull my name as the default From property for the message. However, I have also defined a workgroup shared mailbox in Outlook -- I would like the Outlook object to use this mailbox's e-mail address as the From property for the message I'm creating. Is there a way to do this?

    Thanks.

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

    Re: Outlook Message via VBA (2003 SP2)

    You cannot set the SenderName property in code, it is read-only for security reasons. Instead, you can set the SentOnBehalfOfName property.

  3. #3
    4 Star Lounger
    Join Date
    Feb 2001
    Location
    Richland, Washington, USA
    Posts
    407
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Outlook Message via VBA (2003 SP2)

    I'll try that, Hans. Thanks (again!)

Posting Permissions

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