+ Reply to Thread
Results 1 to 3 of 3

Add File From Folder To Currently Open Email / Draft

  1. #1
    Registered User
    Join Date
    07-18-2014
    Location
    Los Angeles
    MS-Off Ver
    2010
    Posts
    14

    Add File From Folder To Currently Open Email / Draft

    Hello All,

    I used the search function extensively but I did not find my questions asked specifically. Most of the "Attach file from folder" questions involve drafting an entirely new email and is executed from the main outlook window. I would like to attach my files to a currently open email / draft. This macro would be executed on the already open email and the files would attach directly to that email.

    Below is the code I am working with. The code runs but does not attach anything to the open email. I believe the file paths are correct as the code does not throw an error when passing the line.

    There is an IF statement in the code as I send out an AM / PM report so the time of day is relevant. If I had to guess, the issue has something to do with the OApp/OMail objects. Perhaps I need to be setting them equal to the current object? Not sure, just a thought.

    Thank you

    Please Login or Register  to view this content.

  2. #2
    Forum Contributor
    Join Date
    08-27-2006
    Posts
    136

    Re: Add File From Folder To Currently Open Email / Draft

    Set OMail = OApp.CreateItem(0) creates a mailitem.

    Without OMail.Display you never see it.

    Please Login or Register  to view this content.
    To mark "Solved" go to Thread Tools.

  3. #3
    Registered User
    Join Date
    07-18-2014
    Location
    Los Angeles
    MS-Off Ver
    2010
    Posts
    14

    Re: Add File From Folder To Currently Open Email / Draft

    Hi Skatonni,

    Thank you for your help. The code is working now. I spent a few hours to save myself 10 seconds a day.. haha, it will pay off eventually.

    Marked as solved.

+ 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. Save Email as Draft
    By erock24 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-04-2015, 01:22 AM
  2. Excel VBA to open an email draft saved on Desktop
    By Lycn in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-02-2015, 06:01 PM
  3. [SOLVED] Open specific folder, select file to open and copy then paste
    By Kranky in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 11-22-2012, 12:14 AM
  4. Sending Email Via The Draft Folder
    By The_Snook in forum Outlook Formatting & Functions
    Replies: 1
    Last Post: 09-22-2010, 04:05 PM
  5. open file from folder save in new folder
    By tim64 in forum Excel Programming / VBA / Macros
    Replies: 21
    Last Post: 06-17-2005, 03:19 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