+ Reply to Thread
Results 1 to 8 of 8

Excel vba to create email - having a FROM (problem)

  1. #1
    Registered User
    Join Date
    03-31-2011
    Location
    Manchester
    MS-Off Ver
    Excel 2010
    Posts
    68

    Excel vba to create email - having a FROM (problem)

    Hi all,

    I have got some code that generates a new email as i want. The only problem is the FROM element.


    In outlook i am connected to 4 Inbox's.

    By default my Outlook is connected to MY personal works email address. But I need the email to be sent from the department email address.

    So even though im putting the department email address in the - Email_Send_From = "DEPARTMENT EMAIL ADDRESS", it is still sending from MY personal email address.

    At the minute when the email is generated I have to select the "FROM" dropdown and select the department email address.

    Can anyone help?

    Please Login or Register  to view this content.

  2. #2
    Forum Contributor
    Join Date
    02-15-2012
    Location
    England
    MS-Off Ver
    Excel 2007
    Posts
    100

    Re: Excel vba to create email - having a FROM (problem)

    Hi,

    Try this (obviously changing the department email address)

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    03-31-2011
    Location
    Manchester
    MS-Off Ver
    Excel 2010
    Posts
    68

    Re: Excel vba to create email - having a FROM (problem)

    Hi badlydrunkboy,

    GENIUS!!! thank you so so so so much!

  4. #4
    Forum Contributor
    Join Date
    02-15-2012
    Location
    England
    MS-Off Ver
    Excel 2007
    Posts
    100

    Re: Excel vba to create email - having a FROM (problem)

    No worries at all. I recently had to use the exact same thing. Think i got it from http://www.rondebruin.nl/index.htm which is really usefull for vba around emails and attachments etc.

  5. #5
    Registered User
    Join Date
    03-31-2011
    Location
    Manchester
    MS-Off Ver
    Excel 2010
    Posts
    68

    Re: Excel vba to create email - having a FROM (problem)

    Just had a quick look for the help with attachments as i want to attach a PDF.

    Please can you link me?

  6. #6
    Forum Contributor
    Join Date
    02-15-2012
    Location
    England
    MS-Off Ver
    Excel 2007
    Posts
    100

    Re: Excel vba to create email - having a FROM (problem)


  7. #7
    Registered User
    Join Date
    03-31-2011
    Location
    Manchester
    MS-Off Ver
    Excel 2010
    Posts
    68

    Re: Excel vba to create email - having a FROM (problem)

    Cant figure it out, im trying to attach a pdf this is the code im trying.

    It errors where red.

    Please Login or Register  to view this content.

  8. #8
    Forum Contributor
    Join Date
    02-15-2012
    Location
    England
    MS-Off Ver
    Excel 2007
    Posts
    100

    Re: Excel vba to create email - having a FROM (problem)

    I'm afraid I've never used it myself. I'll try to have a look at it a bit later but it's propbably a better idea to ask someone else or start a new thread regarding attaching .PDFs to an email.

    Sorry.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Using Excel macros to Copy, create and email.
    By StrikedOut in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-15-2014, 05:31 AM
  2. Create email using excel vba including formatting
    By rpinxt in forum Excel Programming / VBA / Macros
    Replies: 22
    Last Post: 05-15-2013, 10:16 AM
  3. Use excel VBA to create a multi-rowed email
    By jonjmortimer in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-25-2013, 09:33 AM
  4. Can't Create Macro for Excel to Email through Outlook
    By grosh83 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-27-2012, 05:50 PM
  5. [SOLVED] How do I get excel to create an email using Outlook?
    By cleslie in forum Excel General
    Replies: 0
    Last Post: 11-29-2005, 08:15 PM

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1