+ Reply to Thread
Results 1 to 6 of 6

Call email and attach a word document

  1. #1
    Registered User
    Join Date
    02-09-2016
    Location
    Wales
    MS-Off Ver
    2010
    Posts
    16

    Call email and attach a word document

    Hi,

    I currently use the following code to create a word document from within excel.

    Please Login or Register  to view this content.
    What I would like to now be able to do call outlook to generate and email, attach the word document and send the email.

    I can see various codes for sending excel documents or just emails from within excel but nothing that fits my need and anything I try to adapt wont work.

    Anyone able to offer some help?

    Thanks in advance

  2. #2
    Forum Guru bakerman2's Avatar
    Join Date
    10-03-2012
    Location
    Antwerp, Belgium
    MS-Off Ver
    MO Prof Plus 2016
    Posts
    6,907

    Re: Call email and attach a word document

    Need to adjust Pathname and name for file to save.
    Emailaddress to send to.
    Please Login or Register  to view this content.
    Avoid using Select, Selection and Activate in your code. Use With ... End With instead.
    You can show your appreciation for those that have helped you by clicking the * at the bottom left of any of their posts.

  3. #3
    Registered User
    Join Date
    02-09-2016
    Location
    Wales
    MS-Off Ver
    2010
    Posts
    16

    Re: Call email and attach a word document

    Sorry for the delay in getting back been away.

    Excellent thanks for this works a charm!!

  4. #4
    Forum Guru bakerman2's Avatar
    Join Date
    10-03-2012
    Location
    Antwerp, Belgium
    MS-Off Ver
    MO Prof Plus 2016
    Posts
    6,907

    Re: Call email and attach a word document

    You're welcome and thanks for the rep.

  5. #5
    Registered User
    Join Date
    02-09-2016
    Location
    Wales
    MS-Off Ver
    2010
    Posts
    16

    Re: Call email and attach a word document

    Just a quick follow up, is it possible to set the word document as a temporary file then once the email is created destroy the file so it doesn't get used again?

  6. #6
    Registered User
    Join Date
    02-09-2016
    Location
    Wales
    MS-Off Ver
    2010
    Posts
    16

    Re: Call email and attach a word document

    Ahh don't worry just figured out I can use the Kill command after the email.
    Thanks again.

+ 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. Combine PDF Documents into one document and attach to an email
    By lapot in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-13-2016, 06:59 AM
  2. Replies: 1
    Last Post: 12-02-2014, 06:13 AM
  3. How to convert Word document to PDF and attach to an email ...
    By lapot in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-01-2014, 05:06 PM
  4. [SOLVED] highlight and copy email address from word document
    By lovinguy in forum Word Formatting & General
    Replies: 2
    Last Post: 06-27-2014, 09:02 AM
  5. Replies: 0
    Last Post: 08-24-2012, 01:24 PM
  6. SaveAs PDF and attach to email macro won't attach?!
    By Rerock in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-25-2012, 05:28 PM
  7. Replies: 1
    Last Post: 01-06-2006, 06:35 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